@@ -36,12 +36,16 @@ <h2 class="subtitle has-text-centered">(Most examples use the size attribute for
36
36
</ div >
37
37
< div class ="card-content ">
38
38
< p class ="title is-4 "> HTML Attributes</ p >
39
+ < div class ="content ">
40
+ The bulma class value "has-text-danger" is passed to the icon
41
+ to make it red
42
+ </ div >
39
43
</ div >
40
44
</ div >
41
45
< div class ="card column ">
42
46
< div class ="card-header is-centered ">
43
- < font-awesome-icon size =" 2x " icon ="spinner " spin.bind ="true "> </ font-awesome-icon >
44
- < font-awesome-icon size =" 2x " icon ="spinner " pulse.bind ="true "> </ font-awesome-icon >
47
+ < font-awesome-icon icon ="spinner " spin.bind ="true "> </ font-awesome-icon >
48
+ < font-awesome-icon icon ="spinner " pulse.bind ="true "> </ font-awesome-icon >
45
49
</ div >
46
50
< div class ="card-content ">
47
51
< p class ="title is-4 "> Animations</ p >
@@ -56,7 +60,7 @@ <h2 class="subtitle has-text-centered">(Most examples use the size attribute for
56
60
< div class ="columns ">
57
61
< div class ="column card ">
58
62
< div class ="card-header is-centered ">
59
- < font-awesome-icon size =" 2x " icon ="home " mask ="circle " size =" 3x "> </ font-awesome-icon >
63
+ < font-awesome-icon icon ="home " mask ="circle "> </ font-awesome-icon >
60
64
</ div >
61
65
< div class ="card-content ">
62
66
< p class ="title is-4 "> Masking</ p >
@@ -69,38 +73,51 @@ <h2 class="subtitle has-text-centered">(Most examples use the size attribute for
69
73
</ div >
70
74
< div class ="column card ">
71
75
< div class ="card-header is-centered ">
72
- < font-awesome-icon size =" 2x " icon.bind ="icon "> </ font-awesome-icon >
76
+ < font-awesome-icon icon.bind ="icon "> </ font-awesome-icon >
73
77
</ div >
74
78
< div class ="card-content ">
75
79
< p class ="title is-4 "> Reactive</ p >
76
80
< div class ="content ">
81
+ < p >
82
+ The icon will be recreated when a bindable property is changes.
83
+ </ p >
77
84
< button
78
85
class ="button "
79
86
click.delegate ="icon=(icon==='coffee' ? 'mug-hot' : 'coffee') ">
80
- Brew
87
+ Change bound icon
81
88
</ button >
82
89
</ div >
83
90
</ div >
84
91
</ div >
85
92
< div class ="column card ">
86
93
< div class ="card-header is-centered ">
87
- < font-awesome-icon size ="2x " icon.bind ="[ 'fab', 'microsoft' ] "> </ font-awesome-icon >
88
- +
89
- < font-awesome-icon size ="2x " icon.bind ="[ 'fab', 'github' ] "> </ font-awesome-icon >
94
+ < font-awesome-icon if.bind ="!rotated " prefix ="fas " icon ="coffee "> </ font-awesome-icon >
95
+ < font-awesome-icon if.bind ="rotated " prefix ="fas " icon ="coffee "> </ font-awesome-icon >
90
96
</ div >
91
97
< div class ="card-content ">
92
- < p class ="title is-4 "> Brand Icons</ p >
98
+ < p class ="title is-4 "> Plugin Configuration</ p >
99
+ < div class ="content ">
100
+ < p >
101
+ The icon rotation will change for the new icon because the configuration
102
+ object "rotation" property is being reset
103
+ </ p >
104
+ < button class ="button " click.delegate ="changeRotation() "> Change default rotation</ button >
105
+ </ div >
93
106
</ div >
94
107
</ div >
95
108
< div class ="column card ">
96
109
< div class ="card-header is-centered ">
97
- < font-awesome-icon size =" 2x " if.bind =" !coffeeSpilled " icon ="coffee "> </ font-awesome-icon >
98
- < font-awesome-icon size =" 2x " if.bind ="coffeeSpilled " icon ="mug-hot "> </ font-awesome-icon >
110
+ < font-awesome-icon if.bind =" prefix " prefix =" ${prefix} " icon ="thumbs-up "> </ font-awesome-icon >
111
+ < font-awesome-icon if.bind ="!prefix " icon ="thumbs-up "> </ font-awesome-icon >
99
112
</ div >
100
113
< div class ="card-content ">
101
- < p class ="title is-4 "> Global Configuration </ p >
114
+ < p class ="title is-4 "> Icon prefix </ p >
102
115
< div class ="content ">
103
- < button class ="button " click.delegate ="spillGlobal() "> Spill</ button >
116
+ < p >
117
+ You can override the default "fas" icon prefix by binding
118
+ to another prefix in your view or the icon configuration
119
+ </ p >
120
+ < button class ="button " click.delegate ="changePrefix() "> Change default prefix</ button >
104
121
</ div >
105
122
</ div >
106
123
</ div >
0 commit comments