File tree Expand file tree Collapse file tree 3 files changed +51
-2
lines changed Expand file tree Collapse file tree 3 files changed +51
-2
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,42 @@ import { VerticalTextAlignment } from '@nativescript-community/text';
5
5
@CSSType ( 'MDButton' )
6
6
export abstract class ButtonBase extends Button {
7
7
public variant = 'contained' ;
8
+
9
+ /**
10
+ * Gets or sets the elevation of the button.
11
+ */
8
12
@cssProperty elevation : number ;
13
+
14
+ /**
15
+ * Gets or sets the dynamic elevation offset of the button.
16
+ */
9
17
@cssProperty dynamicElevationOffset : number ;
10
- @cssProperty rippleColor : Color ;
18
+
19
+ /**
20
+ * Gets or sets the ripple-color of the button.
21
+ */
22
+ @cssProperty rippleColor : Color | string ;
23
+
24
+ /**
25
+ * Gets or sets the {@link VerticalTextAlignment|vertical text alignment} of the button.
26
+ */
11
27
@cssProperty verticalTextAlignment : VerticalTextAlignment ;
28
+
29
+ /**
30
+ * Gets or sets the shape of the button.
31
+ */
12
32
@cssProperty shape : string ;
13
33
34
+ /**
35
+ * Gets or sets the icon imageSource of the button.
36
+ */
14
37
public imageSource : ImageSource ;
38
+
39
+ /**
40
+ * Gets or sets the icon src of the button.
41
+ */
15
42
public src : string | ImageSource ;
43
+
16
44
public isLoading : boolean ;
17
45
/**
18
46
* @internal //copied from image common
Original file line number Diff line number Diff line change 3
3
* @module @nativescript -community/ui-material-button
4
4
*/
5
5
6
- import { ButtonBase } from './button-common' ;
6
+ import { ButtonBase } from './button-common' ;
7
7
8
8
export class Button extends ButtonBase { }
Original file line number Diff line number Diff line change @@ -10,6 +10,27 @@ declare module '@nativescript/core/ui/core/view' {
10
10
_getRootFragmentManager ( ) : androidx . fragment . app . FragmentManager ;
11
11
clearFocus ( ) : void ;
12
12
requestFocus ( ) : void ;
13
+
14
+ /**
15
+ * @nativescript -community/ui-material-core {@link installMixins}.
16
+ *
17
+ * Gets or sets the elevation of the view.
18
+ */
19
+ elevation : number ;
20
+
21
+ /**
22
+ * @nativescript -community/ui-material-core {@link installMixins}.
23
+ *
24
+ * Gets or sets the dynamic elevation offset of the view.
25
+ */
26
+ dynamicElevationOffset : number ;
27
+
28
+ /**
29
+ * @nativescript -community/ui-material-core {@link installMixins}.
30
+ *
31
+ * Gets or sets the ripple-color of the view.
32
+ */
33
+ rippleColor : Color | string ;
13
34
}
14
35
}
15
36
You can’t perform that action at this time.
0 commit comments