Documentation ¶
Overview ¶
Package list wraps Bootstrap List Group component.
Index ¶
- type Group
- func (g *Group) Action() *Group
- func (g *Group) Active(idx int, flag bool) *Group
- func (g *Group) Add(content ...interface{}) *Item
- func (g *Group) Disable(idx int, flag bool) *Group
- func (g *Group) EnableItems() *Group
- func (g *Group) Flush() *Group
- func (g *Group) Foreach(fn func(int, *Item)) *Group
- func (g *Group) Horizontalize(vs ...string) *Group
- func (g *Group) InactiveItems() *Group
- func (g *Group) Item(idx int) *Item
- func (g *Group) Length() int
- func (g *Group) Reset() *Group
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
Group represents Bootstrap list group container.
func Button ¶
func Button(data [][]interface{}) *Group
Button returns a list group with <div> and <button> item.
func Link ¶
func Link(data [][]interface{}) *Group
Link returns a list group with <div> and <a> item. The dataset must be slice of []interface{}{link, ...}
func (*Group) EnableItems ¶
EnableItems reset all items to enabled.
func (*Group) Flush ¶
Flush removes some borders and rounded corners to render list group items edge-to-edge in a parent container (e.g., cards).
func (*Group) Horizontalize ¶
Horizontalize returns a horizontal list group.
func (*Group) InactiveItems ¶
InactiveItems resets all items to inactive.
Click to show internal directories.
Click to hide internal directories.