forked from goffee/core
Compare commits
3 commits
852d647f09
...
e7cc41672d
Author | SHA1 | Date | |
---|---|---|---|
e7cc41672d | |||
1657c19cc4 | |||
95a37c9aca |
2 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ type ContentDropdown struct {
|
||||||
type ContentDropdownItem struct {
|
type ContentDropdownItem struct {
|
||||||
Text string
|
Text string
|
||||||
Link string
|
Link string
|
||||||
|
ID string
|
||||||
IsDisabled bool
|
IsDisabled bool
|
||||||
IsActive bool
|
IsActive bool
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{define "content_dropdown_item"}}
|
{{define "content_dropdown_item"}}
|
||||||
<li><a class="dropdown-item {{if eq .IsActive true}}active{{end}} {{if eq .IsDisabled true}}disabled{{end}}" href="{{.Link}}">{{.Text}}</a></li>
|
<li><a {{ if .ID }}id="{{.ID}}"{{end}} class="dropdown-item {{if eq .IsActive true}}active{{end}} {{if eq .IsDisabled true}}disabled{{end}}" href="{{.Link}}">{{.Text}}</a></li>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "content_dropdown"}}
|
{{define "content_dropdown"}}
|
||||||
|
|
Loading…
Reference in a new issue