Skip to content
Snippets Groups Projects
Commit 2023b30d authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add select in test section; add space for css class

parent b2673f6c
No related branches found
No related tags found
1 merge request!18Update renderer class
...@@ -455,6 +455,42 @@ class renderadminlte { ...@@ -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'=>[ 'textarea'=>[
'label'=>'Form: textarea', 'label'=>'Form: textarea',
'description'=>'textarea or html editor', 'description'=>'textarea or html editor',
...@@ -1386,7 +1422,7 @@ class renderadminlte { ...@@ -1386,7 +1422,7 @@ class renderadminlte {
$aElement=$aOptions; $aElement=$aOptions;
$aElement['class']='' $aElement['class']=''
. 'form-control ' . 'form-control '
. (isset($aOptions['class']) ? $aOptions['class']: '') . (isset($aOptions['class']) ? $aOptions['class'].' ': '')
. (isset($aOptions['bootstrap-select']) ? 'selectpicker ': '') //$aOptions . (isset($aOptions['bootstrap-select']) ? 'selectpicker ': '') //$aOptions
; ;
if(isset($aOptions['bootstrap-select']) && $aOptions['bootstrap-select']){ if(isset($aOptions['bootstrap-select']) && $aOptions['bootstrap-select']){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment