NextPrevComponent class

Next/prev buttons.

Example Usage:

<next-prev-buttons [model]="dateRange"
                   [nextLabel]="nextDateRangeMsg"
                   [prevLabel]="prevDateRangeMsg">
</next-prev-buttons>
Annotations
  • @Component(selector: 'next-prev-buttons', changeDetection: ChangeDetectionStrategy.onPush, template: r''' <button class="prev" [class.disabled]="isPrevDisabled" attr.aria-disabled="{{isPrevDisabled}}" attr.tabindex="{{isPrevDisabled ? -1 : 0}}" (click)="prev()"> <material-icon icon="navigate_before" [attr.aria-label]="prevLabel"> </material-icon> </button> <button class="next" [class.disabled]="isNextDisabled" attr.aria-disabled="{{isNextDisabled}}" attr.tabindex="{{isNextDisabled ? -1 : 0}}" (click)="next()"> <material-icon icon="navigate_next" [attr.aria-label]="nextLabel"> </material-icon> </button> ''', styleUrls: ['next_prev_buttons.scss.css'], directives: [MaterialIconComponent])

Constructors

NextPrevComponent(ChangeDetectorRef _changeDetector)

Properties

disabled bool
Whether changing the selection should be disabled.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasNext bool?
no setter
hasPrev bool?
no setter
isNextDisabled bool
Whether the next button is disabled.
no setter
isPrevDisabled bool
Whether the prev button is disabled.
no setter
model Sequential
Something that can logically move to a next/prev value.
no getter
nextLabel String
The aria-label to use on the next button. Defaults to a generic "Next" message.
getter/setter pair
prevLabel String
The aria-label to use on the prev button. Defaults to a generic "Previous" message.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

next() → void
ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prev() → void
stopPropagation(Event e) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited