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
c4d37278
Commit
c4d37278
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update docs
parent
a30c62c1
No related branches found
No related tags found
1 merge request
!14
Update renderer class
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/30_Page/10_Page_layout.md
+11
-0
11 additions, 0 deletions
docs/30_Page/10_Page_layout.md
docs/30_Page/20_Navigation.md
+3
-0
3 additions, 0 deletions
docs/30_Page/20_Navigation.md
docs/40_Components/Tabbed_content.md
+41
-0
41 additions, 0 deletions
docs/40_Components/Tabbed_content.md
with
55 additions
and
0 deletions
docs/30_Page/10_Page_layout.md
+
11
−
0
View file @
c4d37278
...
...
@@ -34,6 +34,17 @@ Variable | Description
{{PAGE_FOOTER_RIGHT}} | page: footer on the left |
{{PAGE_FOOTER_LEFT}} | page: footer on the right |
#### No left sidebar
This shows the left sidebar:
`'{{PAGE_LAYOUT}}' =>'layout-navbar-fixed layout-fixed sidebar-mini',`
This hides the left sidebar:
`'{{PAGE_LAYOUT}}' =>'layout-top-nav sidebar-collapse',`
If you don't have any left sidebar then additionally remove the hampurger menu from the top menu.
## Initial example
### Init Renderer class
...
...
This diff is collapsed.
Click to expand it.
docs/30_Page/20_Navigation.md
+
3
−
0
View file @
c4d37278
...
...
@@ -6,6 +6,7 @@ For the top navigation and left the basic array looks like this:
```
php
return
[
[
'label'
=>
'='
],
[
'href'
=>
'#'
,
'label'
=>
'Menu A'
,
'icon'
=>
'fa-solid fa-home'
],
[
'href'
=>
'#'
,
'label'
=>
'Menu B'
,
'icon'
=>
'fa-solid fa-tv'
],
[
'href'
=>
'#'
,
'label'
=>
'Menu C'
,
'icon'
=>
'fa-solid fa-truck-pickup'
,
'class'
=>
'active'
,
...
...
@@ -29,6 +30,8 @@ children | array that contains 2nd Level
For top navigation in thwe 2nd level (below children) define a label value with a single minus character to draw a line:
`['label'=>'-']`
The hamburger menu is rendered by
`['label'=>'=']`
. Remove this item when you don't want a left sidebar or it is static.
### Show navigation on top
The top navigation is for the placeholder
`{{NAVI_TOP}}`
.
...
...
This diff is collapsed.
Click to expand it.
docs/40_Components/Tabbed_content.md
0 → 100644
+
41
−
0
View file @
c4d37278
## Tabbed content
Show multiple horizontal tabs and a content container that switches its content by selecting a tab.
### Syntax
```
php
$renderAdminLTE
->
getTabbedContent
(
$aOptions
,
$asArray
=
false
);
```
### Return
{string} html code or {array}
### Parameters
*
$aOptions - {array} options to describe the element
Styling:
Key | Description
--- | ---
asArray | boolean; if true it returns an array for tab list and container to draw them individually
Content:
Key | Description
--- | ---
tabs | tabs {array} key=tab label; value=content
### Example
```
php
$renderAdminLTE
->
getTabbedContent
(
array
(
'tabs'
=>
array
(
'one'
=>
'content of tab one'
,
'two'
=>
'content of 2nd tab'
,
'three'
=>
'content of 3rd tab'
,
)
));
```
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