File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,20 @@ FloatingActionButtonStyler.registerHandlers();
103
103
104
104
105
105
/* SETUP PROPERTIES */
106
+ //Background Color
106
107
function onBackColorPropertyChanged ( data ) {
107
108
if ( color . Color . isValid ( data . newValue ) ) {
108
109
var fab = data . object ;
109
110
fab . ios . buttonColor = new color . Color ( data . newValue ) . ios ;
110
111
}
111
112
}
112
113
common . Fab . backColorProperty . metadata . onSetNativeValue = onBackColorPropertyChanged ;
114
+
115
+ //Icon
116
+ function onIconPropertyChanged ( data ) {
117
+ if ( ImageSource . isFileOrResourcePath ( data . newValue ) ) {
118
+ //Cocoapod doesn't support this yet afaik
119
+ //var newImage = ImageSource.fromFileOrResource(data.newValue);
120
+ }
121
+ }
122
+ common . Fab . iconProperty . metadata . onSetNativeValue = onIconPropertyChanged ;
You can’t perform that action at this time.
0 commit comments