The b.Panel
constructor creates a panel.
Modifier | Action |
---|---|
b.Primary | Set color to primary |
b.Link | Set color to link |
b.Info | Set color to info |
b.Success | Set color to success |
b.Warning | Set color to warning |
b.Danger | Set color to danger |
The b.PanelHeading
constructor creates a panel heading.
The b.PanelBlock
constructor creates a panel block.
The b.PanelLink
and b.PanelAHref
constructors create panel blocks which are <a>
elements.
The b.PanelLabel
constructor creates a panel block which is a <label>
element.
The b.PanelTabs
constructor creates a panel tabs section. Its children must be link elements (for instance e.AHref
). Add the b.Active
modifier to a link to mark it as the active tab.
The b.PanelCheckbox
constructor creates a panel block which is a <label>
element, containing a checkbox.
Child | Action |
---|---|
b.OnLabel(...any) | Apply children to the <label> element |
b.OnInput(...any) | Apply children to the <input> element |
gomponents.Node of type gomponents.AttributeType | Apply attribute to the <input> element |
gomponents.Node of type gomponents.ElementType | Add element to the <label> element |
Anything else | Add element to the <label> element |