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

update card + button

parent ca5967da
No related branches found
No related tags found
No related merge requests found
......@@ -33,11 +33,11 @@ Set to true to show it; default: none of it is visible
Key | Description
--- | ---
tb-collaps |
tb-expand | it is added automatically if you set 'state'=>'collapsed'
tb-maximize |
tb-minimize | it is added automatically if you set 'state'=>'maximized'
tb-remove |
tb-collapse | show minus icon to collapse widget
tb-expand | show plus button to expand; it is added automatically if you set 'state'=>'collapsed'
tb-maximize | show maximize button
tb-minimize | show minimize button; it is added automatically if you set 'state'=>'maximized'
tb-remove | show cross button to remove widget
Content:
......
......@@ -482,7 +482,9 @@ class renderadminlte {
.($aOptions['size'] ? ' btn-'.$aOptions['size'] : '')
;
$aElement['label']=$aOptions['text'] ? $aOptions['text'] : ' ';
unset($aElement['_infos']);
foreach(['_infos', 'type', 'size', 'icon', 'text'] as $sDeleteKey){
unset($aElement[$sDeleteKey]);
}
return $this->_tag('button', $aElement);
}
......@@ -530,7 +532,7 @@ class renderadminlte {
* - state - one of [none]|collapsed|maximized
*
* >> toolbar icons - set to true to show it; default: none of it is visible
* - tb-collaps
* - tb-collapse
* - tb-expand it is added automatically if you set 'state'=>'collapsed'
* - tb-maximize
* - tb-minimize it is added automatically if you set 'state'=>'maximized'
......@@ -559,7 +561,7 @@ class renderadminlte {
'maximized'=>[ 'class'=>'maximized-card', 'tool'=>'tb-minimize'],
];
$aTools=[
'tb-collaps'=>'<button type="button" class="btn btn-tool" data-card-widget="collapse"><i class="fas fa-minus"></i></button>',
'tb-collapse'=>'<button type="button" class="btn btn-tool" data-card-widget="collapse"><i class="fas fa-minus"></i></button>',
'tb-expand'=>'<button type="button" class="btn btn-tool" data-card-widget="collapse"><i class="fas fa-plus"></i></button>',
'tb-maximize'=>'<button type="button" class="btn btn-tool" data-card-widget="maximize"><i class="fas fa-expand"></i></button>',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment