You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-18Lines changed: 12 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@ XML widget to create the Material Design Floating Action Button for Android Nati
8
8
9
9
### Screenshot
10
10
---------------
11
-

11
+

12
+

12
13
13
14
## Usage
14
15
@@ -29,7 +30,6 @@ XML widget to create the Material Design Floating Action Button for Android Nati
29
30
<FAB:fabtap="fabTap"
30
31
row="1"
31
32
icon="res://ic_add_white"
32
-
backColor="#ff4081"
33
33
rippleColor="#f1f1f1"
34
34
class="fab-button" />
35
35
</grid-layout>
@@ -44,9 +44,9 @@ I recommend the following CSS styles.
44
44
.fab-button {
45
45
height: 70;
46
46
margin: 15;
47
+
background-color: #ff4081;
47
48
horizontal-align: right; /* Android Only */
48
49
vertical-align: bottom; /* Android Only */
49
-
background-color: #ff4081; /* iOS Only */
50
50
color: #fff; /* iOS Only */
51
51
}
52
52
```
@@ -56,30 +56,24 @@ I recommend the following CSS styles.
56
56
#### JS
57
57
58
58
```JS
59
-
functionfabTap(args) {
59
+
exports.fabTap=function(args) {
60
60
console.log('tapped');
61
61
}
62
-
exports.fabTap= fabTap;
63
62
```
64
63
65
64
***
66
65
67
66
## Attributes
68
-
**backColor** - optional
69
-
70
-
Background color of the FAB
71
-
72
-
### Android Specific Attributes
73
-
**icon** - required
74
-
75
-
Icon to use for the FAB button, supports the same image source options that NativeScript images support.
76
-
77
-
**rippleColor** - optional
78
-
79
-
Ripple color on lollipop devices, it will fill the FAB on pre-lollipop devices
80
-
67
+
| Property | Android | iOS | Description | Note |
68
+
|----------|:-------------:|------:|--|--|
69
+
| backColor | X | X | Sets the background color of the button | None
70
+
| icon | X | | Supports the same image source options that NativeScript images support | Required on android
71
+
| rippleColor | X | |Ripple color on lollipop devices, it will fill the FAB on pre-lollipop devices | None
81
72
82
73
74
+
## iOS Notes
75
+
Since iOS doesn't have a native FAB, we're using the amazing [KCFloatingActionButton](https://cocoapods.org/pods/KCFloatingActionButton) by [Lee Sun-Hyoup](https://github.com/kciter)
76
+
As of this publish, it does not yet support images, however this is an Issue open.
0 commit comments