The b.Field
constructor creates a field.
Modifier | Action |
---|---|
b.Addons | Attach the child controls together |
b.AddonsCentered | Attach the child controls together and center them |
b.AddonsRight | Attach the child controls together and align them to the right |
b.Grouped | Group child controls together |
b.GroupedCentered | Group child controls together and center them |
b.GroupedRight | Group child controls together and align them to the right |
b.GroupedMultiline | Group child controls together and allow them to fill up multiple lines |
b.Horizontal | Make the field horizontal |
The b.Label
constructor creates a label.
The b.Control
constructor creates a control element.
Modifier | Action |
---|---|
b.IconsLeft | Leave space on the left side of the input or select child for an icon - the b.Icon element must be a direct child of b.Control and have the b.Left modifier |
b.IconsRight | Leave space on the right side of the input or select child for an icon - the b.Icon element must be a direct child of b.Control and have the b.Right modifier |
b.Expanded | Expand the control to fill the available width - to apply this style to a <select> element, you must also add the b.FullWidth modifier to the b.Select constructor |
The b.Help
constructor creates a help element, to be used as a child of a b.Field
.
The b.FieldHorizontal
constructor creates a horizontal field.
Child | Action |
---|---|
b.OnField(...any) | Apply children to the <div class="field"> element |
b.OnLabel(...any) | Apply children to the <div class="field-label"> element |
b.OnBody(...any) | Apply children to the <div class="field-body"> element |
b.Label(...any) | Add label to the <div class="field-label"> element |
e.Element | Add element to the <div class="field-body"> element |
Anything else | Apply child to the <div class="field"> element |