Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LinkSorter

LinkSorter renders a list of sort links for the given sort definition.

LinkSorter will generate a hyperlink for every attribute declared in sort.

For more details and usage information on LinkSorter, see the guide article on sorting.

author

Mahesh S Warrier https://github.com/codespede

Hierarchy

Index

Constructors

Properties

attributes: any = {}

List of the attributes that support sorting. If not set, it will be determined using Sort.attributes.

enablePjax: boolean = true

Whether to enable Pjax on this widget.

initialization: Promise<void>

A Promise which resolves when this Component has been successfully initialized.

linkOptions: {} = {}

HTML attributes for the link in a sorter container tag which are passed to Sort.link.

see

[[Html.renderTagAttribute]]s for details on how attributes are being rendered.

Type declaration

  • [key: string]: any
options: {} = ...

HTML attributes for the sorter container tag.

see

Html.ul for special attributes.

see

Html.renderTagAttributes for details on how attributes are being rendered.

Type declaration

  • [key: string]: any
sort: Sort

the sort definition

autoIdPrefix: string = 'w'

The prefix to the automatically generated widget IDs.

see

getId

counter: number = 0

A counter used to generate id for widgets.

internal

Methods

  • getId(autogenerate?: boolean): string
  • Returns the ID of the widget.

    Parameters

    • autogenerate: boolean = true

    Returns string

    ID of the widget.

  • init(): Promise<void>
  • registerAssets(): void
  • render(): Promise<string>
  • Renders a widget.

    throws

    InvalidArgumentException if the view file does not exist.

    Returns Promise<string>

    string the rendering result.

  • renderSortLinks(): string
  • run(): Promise<string>

Generated using TypeDoc