File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
src/main/scala/sri/universal/apis Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,19 @@ trait Alert extends js.Object {
18
18
object Alert extends Alert
19
19
20
20
trait AlertButton extends js.Object {
21
- var text : js.UndefOr [String ] = js.undefined
22
- var onPress : js.UndefOr [js.Function ] = js.undefined
23
- var style : js.UndefOr [AlertButtonStyle ] = js.undefined
21
+ val text : js.UndefOr [String ] = js.undefined
22
+ val onPress : js.UndefOr [js.Function ] = js.undefined
23
+ val style : js.UndefOr [AlertButtonStyle ] = js.undefined
24
+ }
25
+
26
+ object AlertButton {
27
+ @ inline
28
+ def apply (text : OP [String ] = NoValue ,
29
+ onPress : OP [() => _] = NoValue ,
30
+ style : OP [AlertButtonStyle ] = NoValue ): AlertButton = {
31
+ val p = FunctionObjectMacro ()
32
+ p.asInstanceOf [AlertButton ]
33
+ }
24
34
}
25
35
26
36
trait AlertOptions extends js.Object {
You can’t perform that action at this time.
0 commit comments