forked from goffee/core
components: buttons, dropdown, href, nav
This commit is contained in:
parent
bfde0cc445
commit
7073cd1c21
9 changed files with 106 additions and 19 deletions
16
template/components/page_nav.go
Normal file
16
template/components/page_nav.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package components
|
||||
|
||||
type PageNav struct {
|
||||
NavClass string // nav-pills
|
||||
NavItems []PageNavItem
|
||||
IsVertical bool
|
||||
IsTab bool
|
||||
}
|
||||
|
||||
type PageNavItem struct {
|
||||
Text string
|
||||
Link string
|
||||
IsDisabled bool
|
||||
IsActive bool
|
||||
ChildItems []PageNavItem
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue