🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Action Controls
This page was created by Stephanie on 2023-05-25. Last edited by Wikiadmin on 2026-09-12.

Buttons[edit source]

Data-bind Action's Presentation Name[edit source]

Add <ActionColumn>_Label (deprecated <ActionColumn>_Presentation) column in ViewModel to be able to dynamically change a presentation text of action.

Default Buttons[edit source]

Example Modifier-class
danger
warning
success
info

Outlined Buttons[edit source]

Example Modifier-class
outlined
outlined danger
outlined warning
outlined success
outlined info

Text Buttons[edit source]

Example Modifier-class
flat
flat danger
flat warning
flat success
flat info

Shaped Buttons[edit source]

Example Modifier-class
shaped
shaped danger
shaped warning
shaped success
shaped info

Buttons With Icons[edit source]

You can add an icon to your button. To do that, add the Tagged Value "Icon" to your ViewModelColumn which contains action. The value of the Tagged Value should be the icon name. We use Material Design icons as the default icons for the MDriven Turnkey application. Find the different icons on the following website: Icons - Material Design.

Go to Icons – Material Design and choose the icon you want to add to your button.

Choose an icon on the Material Design Icons website
Choose an icon on the Material Design Icons website

After you've chosen the icon you want to add to your button, click on the left bottom corner to expand the icon description. There you will be able to copy the name of the icon to the value of Tagged Value.

Copy the icon name to the value of TaggedValue "Icon"

NOTE: If the name is "Arrow back", you must probably use "arrow_back" - the MaterialDesign icon web page is not very clear on what name to use but the space is replaced with an underscore and no capitals in the names!

Add the name of the chosen icon to the TaggedValue value.

Also, you can choose the position of the icon with the help of TaggedValue – "IconPosition". (There are two available options: before or after. By default – before).

Example Description
Default presentation of a button with a leading icon
Presentation of a button with an icon after the button text
Icon button without button text
Icon button with addition of modifier-class "fab"