Skip to content

Commit

Permalink
update rsce helper class
Browse files Browse the repository at this point in the history
  • Loading branch information
pressi committed Nov 28, 2017
1 parent 64e6fcc commit 23e5847
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions Helper/RSCEHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,37 @@ public static function getDoubleTextFieldConfig( $label, $newLine = false, $isLo
'inputType' => 'text',
'eval' => array
(
'maxlength' => 16,
'maxlength' => 255,
'multiple' => true,
'size' => 2,
'tl_class' => ($isLong ? 'long' : 'w50') . ($newLine ? ' clr': '')
)
);
}



public static function getColorFieldConfig( $label, $newLine = false )
{
if( !is_array($label) )
{
$label = array($label, '');
}

return array
(
'label' => $label,
'inputType' => 'text',
'eval' => array
(
'maxlength' => 64,
'multiple' => true,
'size' => 2,
'colorpicker' => true,
'isHexColor' => true,
'decodeEntities' => true,
'tl_class' => ($isLong ? 'long' : 'w50') . ' wizard' . ($newLine ? ' clr': '')
)
'tl_class' => 'w50 wizard' . ($newLine ? ' clr': '')
),
);
}

Expand Down

0 comments on commit 23e5847

Please sign in to comment.