UI MarCom 3

Toggle Button Group Stable New in 3.2 Dark theme

Toggle Buttons display the status „active“ or "not-active“ through their design. Functionally they are very similar to Radio Buttons which means only one button can be active at the same time.

<uimc-togglebutton-group>
    <uimc-togglebutton>
       Label 1
    </uimc-togglebutton>
    <uimc-togglebutton>
       Label 2
    </uimc-togglebutton>
</uimc-togglebutton-group>

Toggle Button container <uimc-togglebutton-group>

AttributeDescriptionValuesDefault
flowSet the flow of the buttonsrow, column, breakpointrow
breakpointIf flow is set to breakpoint it turns horizontal above the given breakpointxs, sm, md, lg, xlmd
themeControl item’s backgroundlight, darklight

CallbackArgumentDescription
onChangecurrent togglebuttonCallback function that gets triggered when a togglebutton inside the group is clicked

SlotSlotted content
defaultSlot for some <uimc-togglebutton>

Toggle Buttons <uimc-togglebutton>

AttributeDescriptionValuesDefault
selectedSelect-state of the Toggle Button
disabledActive-state of the item

CallbackArgumentDescription
onChangeObjectCallback function that gets triggered when the togglebutton is clicked

SlotSlotted content
defaultInner text is shown as label

Toggle Button Group text only

Label 1Label 2
<uimc-togglebutton-group flow= "row">
    <uimc-togglebutton selected>
       Label 1
    </uimc-togglebutton>
    <uimc-togglebutton>
       Label 2
    </uimc-togglebutton>
</uimc-togglebutton-group>

Toggle Button Group icons only

<uimc-togglebutton-group flow= "row">
    <uimc-togglebutton selected>
       <i class="icon-layout-2x2"></i>
    </uimc-togglebutton>
    <uimc-togglebutton>
       <i class="icon-layout-3x2"></i>
    </uimc-togglebutton>
    <uimc-togglebutton>
       <i class="icon-layout-3x3"></i>
    </uimc-togglebutton>
    <uimc-togglebutton>
       <i class="icon-layout-list"></i>
    </uimc-togglebutton>
</uimc-togglebutton-group>

Toggle Button Group Icons text combination

PlayPauseStop
<uimc-togglebutton-group flow= "row">
    <uimc-togglebutton selected>
       <i class="icon-play"></i>Play
    </uimc-togglebutton>
    <uimc-togglebutton>
       <i class="icon-pause"></i>Pause
    </uimc-togglebutton>
    <uimc-togglebutton>
       <i class="icon-video-stop"></i>Stop
    </uimc-togglebutton>
</uimc-togglebutton-group>

Dark theme

Label 1Label 2
<uimc-togglebutton-group flow= "row" theme="dark">
    <uimc-togglebutton selected>
       Label 1
    </uimc-togglebutton>
    <uimc-togglebutton>
       Label 2
    </uimc-togglebutton>
</uimc-togglebutton-group>
<uimc-togglebutton-group flow= "row" theme="dark">
    <uimc-togglebutton selected>
       <i class="icon-layout-2x2"></i>
    </uimc-togglebutton>
    <uimc-togglebutton>
       <i class="icon-layout-3x2"></i>
    </uimc-togglebutton>
    <uimc-togglebutton>
       <i class="icon-layout-3x3"></i>
    </uimc-togglebutton>
    <uimc-togglebutton>
       <i class="icon-layout-list"></i>
    </uimc-togglebutton>
</uimc-togglebutton-group>
PlayPauseStop
<uimc-togglebutton-group flow= "row" theme="dark">
    <uimc-togglebutton selected>
       <i class="icon-play"></i>Play
    </uimc-togglebutton>
    <uimc-togglebutton>
       <i class="icon-pause"></i>Pause
    </uimc-togglebutton>
    <uimc-togglebutton>
       <i class="icon-video-stop"></i>Stop
    </uimc-togglebutton>
</uimc-togglebutton-group>