Skip to content
Snippets Groups Projects

Update renderer class

Merged Hahn Axel (hahn) requested to merge update_renderer_class into main
1 file
+ 37
1
Compare changes
  • Side-by-side
  • Inline
@@ -455,6 +455,42 @@ class renderadminlte {
]
],
// ------------------------------------------------------------
// WIP
'select'=>[
'label'=>'Form: select',
'description'=>'Select box',
'method'=>'getFormSelect',
'params'=>[
'label' => [
'group'=>'styling',
'description'=>'label for the select field',
'example_value'=>'Enter text'
],
'bootstrap-select' => ['select'=> [
'description'=>'Enable bootstrap-select plugin',
'group'=>'styling',
'values'=>[
'0'=>'no',
'1'=>'yes',
]
]
],
'class' => [
'group'=>'styling',
'description'=>'optional: css classes',
'example_value'=>'myclass'
],
'options' => [
'example_value'=> [
[ "value" => "1", "label"=>"one" ],
[ "value" => "2", "label"=>"two" ],
[ "value" => "3", "label"=>"three" ],
],
]
],
],
// ------------------------------------------------------------
'textarea'=>[
'label'=>'Form: textarea',
'description'=>'textarea or html editor',
@@ -1386,7 +1422,7 @@ class renderadminlte {
$aElement=$aOptions;
$aElement['class']=''
. 'form-control '
. (isset($aOptions['class']) ? $aOptions['class']: '')
. (isset($aOptions['class']) ? $aOptions['class'].' ': '')
. (isset($aOptions['bootstrap-select']) ? 'selectpicker ': '') //$aOptions
;
if(isset($aOptions['bootstrap-select']) && $aOptions['bootstrap-select']){
Loading