Angular Mobile Buttons
Angular Mobile Buttons - Bootstrap 4 & Material Design
Use Angular Mobile Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more..
Basic example
Angular Mobile Bootstrap includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.
<ScrollView>
<StackLayout>
<Button mdbBtn theme="primary" text="Primary"></Button>
<Button mdbBtn theme="secondary" text="Secondary"></Button>
<Button mdbBtn theme="success" text="Success"></Button>
<Button mdbBtn theme="danger" text="Danger"></Button>
<Button mdbBtn theme="warning" text="Warning"></Button>
<Button mdbBtn theme="info" text="Info"></Button>
<Button mdbBtn theme="light" text="Light"></Button>
<Button mdbBtn theme="dark" text="Dark"></Button>
</StackLayout>
</ScrollView>
Angular Mobile Buttons - API
In this section you will find informations about buttons and its required modules and available inputs, outputs, methods and events.
Modules used
In order to speed up your application, you can choose to import only the modules you actually need, instead of importing the entire MDB Angular Mobile library. Remember that importing the entire library, and immediately afterwards a specific module, is bad practice, and can cause application errors.
// MDB Angular Mobile Free
import { MdbButtonsModule } from 'mdb-angular-mobile'
Directives
MdbButton
Selector: [mdbBtn]
Type: MdbBtnDirective
Inputs
| Name | Type | Default | Description | Example |
|---|---|---|---|---|
gradient
|
string | ' ' | Allow to add a gradient background color to the button. | gradient="peach" |
isEnabled
|
boolean | true | Allow to disable button. | isEnabled="false" |
outline
|
boolean | false | Allow to change button style to outline. | outline="true" |
theme
|
string | ' ' | Allow to set color of a button. | theme="primary" |
