theabraxas / Project-Neith

Project Neith is intended to provide an extensible and modular dashboard which conveys important information concisely and enables actions on monitored systems.
https://abraxas.io
GNU General Public License v3.0
22 stars 2 forks source link

Implement a horizontal navigation bar #18

Closed theabraxas closed 5 years ago

theabraxas commented 5 years ago

It would be nice if each integration had an option for a horizontal menu and the ability to hide pages from the left navbar.

For example, the AD integration should have a left navbar which links to the high level overview. The other pages could be set as subpages which are exposed on a then visible horizontal navigation menu. These would be things like 'user overview', 'computer overview', 'ad security', and so forth.

theabraxas commented 5 years ago

Using this as a workaround -

$PageSelector = New-UDElement -Tag div -Attributes @{
    style = @{display = 'flex'; flexdirection = 'row';}
    } -Content {
    New-UDButton -Text "AD Summary" -OnClick {
        Set-UDElement -Id page -Content { $ADSummary }
    }
    New-UDButton -Text "User Overview" -OnClick {
        Set-UDElement -Id page -Content { $UserOverview }
    }
    New-UDButton -Text "AD Health (Coming Soon!)"
    New-UDButton -Text "AD Management (Coming Soon!)"
} 

Shoutouts to the answer here from Alon - https://forums.universaldashboard.io/t/max-height-or-enforced-height-on-udrow-or-udcards/399