packages/ecl/components/ecl-pagination/ecl-pagination-item.component.ts
| encapsulation | ViewEncapsulation.None |
| selector | li[eclPaginationItem] |
| imports |
RouterLink
RouterLinkWithHref
TranslateModule
EUI_ECL_ICON
EUI_ECL_LINK
|
| templateUrl | ./ecl-pagination-item.component.html |
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
Accessors |
constructor()
|
|
Adds relevant classes to the host element. |
| ariaLabel |
Type : string
|
|
Value for the |
| href |
Type : string
|
Default value : null
|
|
Href link for navigation. |
| isCurrent |
Type : boolean
|
|
Adds the |
| isNext |
Type : boolean
|
|
Adds the |
| isPrevious |
Type : boolean
|
|
Adds the |
| isTruncated |
Type : boolean
|
Default value : false
|
|
Adds the |
| label |
Type : string
|
|
Text content of the pagination item. |
| pagesCount |
Type : string
|
|
Total number of pages displayed by the pagination component. |
| queryParams |
Type : Params | null
|
Default value : null
|
|
Query parameters for the router link. |
| queryParamsHandling |
Type : QueryParamsHandling
|
Default value : null
|
|
Determines how query parameters are handled during navigation. |
| routerLink |
Type : string | any[]
|
Default value : null
|
|
Router navigation link for Angular routing. |
| class |
Type : string
|
| e2eAttr |
Type : any
|
| tabindex |
Type : number
|
| pageClick |
Type : EventEmitter
|
|
Emits when the pagination item is clicked. |
| attr.role |
Type : string
|
Default value : 'listitem'
|
|
Sets the |
| class |
Type : string
|
| geti18nPageAriaLabelKey |
geti18nPageAriaLabelKey()
|
|
Returns the i18n translation key for the ARIA label.
Returns :
string
|
| geti18nPageLabelKey |
geti18nPageLabelKey()
|
|
Returns the i18n translation key for the visible label.
Returns :
string
|
| isPrevOrNextVisible |
isPrevOrNextVisible()
|
|
Returns true if the item is either previous or next.
Returns :
boolean
|
| onPageClick | ||||||||
onPageClick(evt: Event)
|
||||||||
|
Handles the click event and emits the
Parameters :
Returns :
void
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| el |
Type : unknown
|
Default value : inject(ElementRef)
|
| role |
Type : string
|
Default value : 'listitem'
|
Decorators :
@HostBinding('attr.role')
|
|
Sets the |
| cssClasses |
getcssClasses()
|
| anchorRole |
getanchorRole()
|
| isIconOnly |
getisIconOnly()
|
|
Returns true if this item is an icon-only element (previous or next page).
Returns :
boolean
|