How to use the ngx-easy-table.API.sortBy function in ngx-easy-table

To help you get started, we’ve selected a few ngx-easy-table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ssuperczynski / ngx-easy-table / src / app / demo / api / api.component.ts View on Github external
sortBy(column: string, order: 'asc' | 'desc'): void {
    this.table.apiEvent({
      type: API.sortBy,
      value: { column, order },
    });
  }
github ssuperczynski / ngx-easy-table / src / app / demo / persist-state-router / persist-state-router.component.ts View on Github external
sortBy(): void {
    const column = this.sortColumn;
    const order = this.sortOrder;
    this.table.apiEvent({
      type: API.sortBy,
      value: { column, order },
    });
  }
}