Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AdminLTE renderer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
AdminLTE renderer
Commits
d0ec225b
Commit
d0ec225b
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update card + button
parent
ca5967da
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/50_Components/Card.md
+5
-5
5 additions, 5 deletions
docs/50_Components/Card.md
public_html/classes/render-adminlte.class.php
+6
-4
6 additions, 4 deletions
public_html/classes/render-adminlte.class.php
with
11 additions
and
9 deletions
docs/50_Components/Card.md
+
5
−
5
View file @
d0ec225b
...
...
@@ -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-collaps
e | 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:
...
...
This diff is collapsed.
Click to expand it.
public_html/classes/render-adminlte.class.php
+
6
−
4
View file @
d0ec225b
...
...
@@ -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-collaps
e
* - 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-collaps
e
'
=>
'<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>'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment