Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-NavTopMenu #336

Open
DonDom86 opened this issue Sep 4, 2022 · 1 comment
Open

New-NavTopMenu #336

DonDom86 opened this issue Sep 4, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@DonDom86
Copy link

DonDom86 commented Sep 4, 2022

Based on the report that the Testimo module generates, I came across the use of the navigation menus (through your recommendation).
So I would like to use the tabs of the Testimo report as top menus entrys.
These entries should link directly to the seperate reports.

Unfortunately it is not possible for me to implement "New-HTMLNavTop" as a link.
No big thing - only some mouse clicks more.
Issue or Enhancement?

image

Example:

New-HTML -TitleText 'Testing Navigation' {
    New-HTMLNavTop -Logo 'https://evotec.xyz/wp-content/uploads/2021/04/Logo-evotec-bb.png' -LogoLinkHome -LogoLink "$PSScriptRoot\Example41-Navigation03.html" {
        
        New-NavTopMenu -Name 'Domains' -IconRegular address-book -InternalPageID 'Page2'  {
        }

    } -MenuColor White -MenuColorBackground Black -HomeColorBackground White -HomeColor Black
    New-HTMLHeader {
        New-HTMLText -Text 'In header - main page'
    }

    New-HTMLPage -Name 'Page1' {
        New-HTMLHeader {
            New-HTMLText -Text 'In header'
        }
        New-HTMLTab -Name 'Test 1' {
            New-HTMLSection -HeaderText 'Test 0' {
                New-HTMLTable -DataTable $DataTable1 -Title 'Test2' -PagingLength 2
            }
            New-HTMLSection -HeaderText 'Test 1' {
                New-HTMLTable -DataTable $DataTable1 -Title 'Test2' -PagingLength 2
            }
        }
        New-HTMLTab -Name 'Test 2' {

        }
        New-HTMLFooter {
            New-HTMLText -Text 'In footer'
        }
    }

} -ShowHTML -Online -FilePath $PSScriptRoot\Example41-Navigation03.html
@PrzemyslawKlys
Copy link
Member

If your goal was to click on Domains and it to have an action then it's an enhancement. The idea is - it's a menu, not a button. It could be implemented I guess.

@PrzemyslawKlys PrzemyslawKlys added the enhancement New feature or request label Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants