Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion projects/angular-split/src/lib/component/split.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
Inject,
Optional,
ContentChild,
numberAttribute,
} from '@angular/core'
import { Observable, Subscriber, Subject } from 'rxjs'
import { debounceTime } from 'rxjs/operators'
Expand Down Expand Up @@ -95,7 +96,7 @@ import { SplitGutterDirective } from '../gutter/split-gutter.directive'
>
<div
role="separator"
tabindex="0"
[tabindex]="tabindex"
*ngIf="last === false"
#gutterEls
class="as-split-gutter"
Expand Down Expand Up @@ -157,6 +158,8 @@ export class SplitComponent implements AfterViewInit, OnDestroy {
return this._direction
}

@Input({ transform: numberAttribute }) tabindex: number = 0

@Input() set unit(v: ISplitUnit) {
this._unit = v === 'pixel' ? 'pixel' : 'percent'

Expand Down