File tree 1 file changed +6
-14
lines changed
src/cdk-experimental/ui-patterns/tabs
1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,6 @@ export class TabPattern {
24
24
/** A unique identifier for the tab. */
25
25
id : Signal < string > ;
26
26
27
- /** The position of the tab in the list. */
28
- index = computed (
29
- ( ) =>
30
- this . tablist ( )
31
- . navigation . inputs . items ( )
32
- . findIndex ( i => i . id ( ) === this . id ( ) ) ?? - 1 ,
33
- ) ;
34
-
35
27
/** Whether the tab is selected. */
36
28
selected = computed ( ( ) => this . tablist ( ) . selection . inputs . selectedIds ( ) . includes ( this . id ( ) ) ) ;
37
29
@@ -53,11 +45,11 @@ export class TabPattern {
53
45
/** The html element that should receive focus. */
54
46
element : Signal < HTMLElement > ;
55
47
56
- constructor ( args : TabInputs ) {
57
- this . id = args . id ;
58
- this . tablist = args . tablist ;
59
- this . tabpanel = args . tabpanel ;
60
- this . element = args . element ;
61
- this . disabled = args . disabled ;
48
+ constructor ( inputs : TabInputs ) {
49
+ this . id = inputs . id ;
50
+ this . tablist = inputs . tablist ;
51
+ this . tabpanel = inputs . tabpanel ;
52
+ this . element = inputs . element ;
53
+ this . disabled = inputs . disabled ;
62
54
}
63
55
}
You can’t perform that action at this time.
0 commit comments