PSWriteHTML icon indicating copy to clipboard operation
PSWriteHTML copied to clipboard

New-NavTopMenu

Open DonDom86 opened this issue 3 years ago • 1 comments

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

DonDom86 avatar Sep 04 '22 11:09 DonDom86

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 avatar Apr 08 '23 06:04 PrzemyslawKlys