Skip to content

Commit 9b0ae6e

Browse files
committed
test: button demo update
1 parent e7aa2b1 commit 9b0ae6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

demo-vue/app/examples/Buttons.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<ScrollView>
1111
<StackLayout>
1212
<MDButton text="raised button" @tap="onTap" />
13+
<MDButton src="res://ic_action_add" text="button with icon" @tap="onTap" />
14+
<MDButton variant="text" color="red" src="res://ic_action_add" text="button with icon and tint" @tap="onTap" />
1315
<MDButton variant="text" text="text button" @tap="onTap" />
1416
<MDButton variant="flat" text="flat button" @tap="onTap" />
1517
<MDButton variant="outline" text="outline button" @tap="onTap" />
@@ -19,6 +21,7 @@
1921
<MDTextField class="session-details-input" :hint="'description'" />
2022
</StackLayout>
2123
<MDFloatingActionButton src="res://ic_action_add" @tap="onTap" horizontalAlignment="center" />
24+
<MDFloatingActionButton fontSize="26" text="mdi-plus" class="mdi" @tap="onTap" horizontalAlignment="center" />
2225
<MDFloatingActionButton src="res://ic_action_add" color="white" backgroundColor="blue" size="mini" @tap="onTap" horizontalAlignment="center" />
2326
<MDFloatingActionButton src="res://ic_action_add" text="test expanded" @tap="onTap" horizontalAlignment="center" />
2427
<MDFloatingActionButton src="res://ic_action_add" text="test expanded" :expanded="expanded" @tap="switchExpanded" horizontalAlignment="center" />
@@ -45,6 +48,7 @@
4548
<MDButton text="text button class" width="200" class="text_class_test" variant="text" @tap="onTap" />
4649
<MDButton text="disabled text button" isEnabled="false" width="200" variant="text" @tap="onTap" />
4750
<MDButton class="falseFAb bg-green" text="+" color="white" verticalAlign="center" backgroundColor="#53ba82" @tap="onTap" />
51+
<MDButton class="falseFAb bg-green" src="res://ic_action_add" @tap="onTap" />
4852
<MDButton backgroundColor="red" text="backgroundColor" isEnabled="false" />
4953
<MDButton class="buttontest" text="buttontest" />
5054
<MDButton class="buttontest" text="buttontest" isEnabled="false" />

0 commit comments

Comments
 (0)