File tree 4 files changed +12
-1
lines changed
projects/lfx-component-lib/src/lib/controls/buttons
4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const meta: Meta<ButtonsComponent> = {
19
19
tags : [ 'autodocs' ] ,
20
20
render : ( args ) => ( {
21
21
template : `
22
- <lfx-buttons type="${ args . type } " [disabled]="${ args . disabled } ">
22
+ <lfx-buttons type="${ args . type } " [disabled]="${ args . disabled } " [isDrillDown]=" ${ args . isDrillDown } " >
23
23
<i class="fa-sharp fa-light fa-file-chart-column"></i>
24
24
<span>Button Text</span>
25
25
<i class="fa-sharp fa-light fa-arrow-right"></i>
@@ -34,6 +34,9 @@ const meta: Meta<ButtonsComponent> = {
34
34
disabled : {
35
35
control : 'boolean' ,
36
36
} ,
37
+ isDrillDown : {
38
+ control : 'boolean' ,
39
+ } ,
37
40
} ,
38
41
args : {
39
42
type : 'primary' as IButtonType ,
Original file line number Diff line number Diff line change 1
1
< button
2
2
class ="lfx-button lfx-button--{{ type().toLowerCase() }} "
3
+ [class.lfx-button--drill-down] ="isDrillDown() "
3
4
[disabled] ="disabled() "
4
5
(click) ="onClick() "
5
6
>
Original file line number Diff line number Diff line change 66
66
color : $grey-700 ;
67
67
}
68
68
}
69
+
70
+ & .lfx-button--drill-down {
71
+ border-top-left-radius : $dim-40 ;
72
+ border-bottom-left-radius : 0 ;
73
+ }
69
74
}
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ export class ButtonsComponent {
13
13
type = input < IButtonType > ( 'primary' ) ;
14
14
disabled = input < boolean > ( false ) ;
15
15
16
+ isDrillDown = input < boolean > ( false ) ;
17
+
16
18
click = output < void > ( ) ;
17
19
18
20
onClick ( ) {
You can’t perform that action at this time.
0 commit comments