ButtonToolbar

in namespace DotVVM.Bootstrap5.Controls

Combines ButtonGroups or InputGroups into button toolbars.

Usage & Scenarios

Render a Bootstrap button toolbar which consists of one or more ButtonGroup or InputGroup controls.

https://getbootstrap.com/docs/5.2/components/button-group/#button-toolbar

Sample 1: ButtonToolbar Usage

Place ButtonGroup or InputGroup controls inside the toolbar element.

The JustifyContent property group allows to specify the alignment for the toolbar content for different screen sizes.

<bs:ButtonToolbar JustifyContentAll="Evenly">
  <bs:ButtonGroup Size="Default">
      <bs:Button Text="1" Type="secondary" VisualStyle="Outline" />
      <bs:Button Text="2" Type="secondary" VisualStyle="Outline" />
      <bs:Button Text="3" Type="secondary" VisualStyle="Outline" />
      <bs:Button Text="4" Type="secondary" VisualStyle="Outline" />
  </bs:ButtonGroup>
  <bs:InputGroup>
      <bs:InputGroupLiteral Text="@" />
      <bs:TextBox Placeholder="Input group example" Text="" />
  </bs:InputGroup>
</bs:ButtonToolbar>

Properties

Name Type Description Notes Default Value
property icon Content List<IButtonToolbarItem> Gets or sets the inner elements containing only ButtonGroup and InputGroup controls.
attribute
inner element
static value
bindable
default
null
property icon JustifyContentAll BootstrapJustifyContent Gets or sets the flexbox utility CSS class for all screens.
attribute
inner element
static value
bindable
default
null
property icon JustifyContentLarge BootstrapJustifyContent Gets or sets the flexbox utility CSS class for a large screen.
attribute
inner element
static value
bindable
default
null
property icon JustifyContentMedium BootstrapJustifyContent Gets or sets the flexbox utility CSS class for a medium screen.
attribute
inner element
static value
bindable
default
null
property icon JustifyContentSmall BootstrapJustifyContent Gets or sets the flexbox utility CSS class for a small screen.
attribute
inner element
static value
bindable
default
null
property icon JustifyContentXLarge BootstrapJustifyContent Gets or sets the flexbox utility CSS class for a very large screen.
attribute
inner element
static value
bindable
default
null
property icon JustifyContentXXLarge BootstrapJustifyContent Gets or sets the flexbox utility CSS class for the largest screen.
attribute
inner element
static value
bindable
default
null
property icon Visible Boolean Gets or sets whether the control is visible. When set to false, `style="display: none"` will be added to this control.
attribute
inner element
static value
bindable
default
True

HTML produced by the control