diff --git a/docs/30_Page/10_Page_layout.md b/docs/30_Page/10_Page_layout.md index ddcfea6730841624b78076c9ecdcf21b1a22073a..055e8b88471762dce2869d00be7bd11e897d141c 100644 --- a/docs/30_Page/10_Page_layout.md +++ b/docs/30_Page/10_Page_layout.md @@ -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 diff --git a/docs/30_Page/20_Navigation.md b/docs/30_Page/20_Navigation.md index 9ca7f4319423e4db94711448f4ac39517345a97f..2b4daa9ea14addb8e1bb774b28b98e3e69ccbfca 100644 --- a/docs/30_Page/20_Navigation.md +++ b/docs/30_Page/20_Navigation.md @@ -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}}`. diff --git a/docs/40_Components/Tabbed_content.md b/docs/40_Components/Tabbed_content.md new file mode 100644 index 0000000000000000000000000000000000000000..7e0a3eb31a4a363747a03b3cd7b75582e7c623d9 --- /dev/null +++ b/docs/40_Components/Tabbed_content.md @@ -0,0 +1,41 @@ +## 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', + ) +)); +```