How to use the @covalent/core.TdDataTableSortingOrder.Descending function in @covalent/core

To help you get started, we’ve selected a few @covalent/core 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 saurabh1e / open-pos / src / app / stock-management / base-stock-table / base-stock-table.component.ts View on Github external
toggleRow: (any) => Observable;
  @Input()
  addRow: () => Observable;
  @Input()
  dateFilter: any = null;

  shops: RetailShop[] = [];
  shop: RetailShop;
  shopsSub: Subscription;
  shopSub: Subscription;
  currentPage: number = 1;
  pageSize: number = 50;
  sortBy: string = 'id';
  fromDate: Date;
  toDate: Date;
  sortOrder: TdDataTableSortingOrder = TdDataTableSortingOrder.Descending;

  constructor(private _loadingService: TdLoadingService,
              private _shopService: RetailShopsService) {
    this._loadingService.create({
      name: 'tables',
      type: LoadingType.Circular,
      mode: LoadingMode.Indeterminate,
      color: 'warn',
    });
  }

  ngOnInit() {
    this.shop = this._shopService.shop;
    this.shops = this._shopService.shops;
    this.getData();
    this.shopsSub = this._shopService.shops$.subscribe((data: RetailShop[]) => {
github saurabh1e / open-pos / src / app / reporting / customer / customer.component.ts View on Github external
sort(name: string, sortOrder: TdDataTableSortingOrder): void {
    this.sortBy = name;
    if (sortOrder.toString() == 'ASC') {
      this.sortOrder = TdDataTableSortingOrder.Descending
    }
    else {
      this.sortOrder = TdDataTableSortingOrder.Ascending
    }
    this.filter();
  }
github saurabh1e / open-pos / src / app / stock-management / base-stock-table / base-stock-table.component.ts View on Github external
sort(name: string, sortOrder: TdDataTableSortingOrder): void {
    this.sortBy = name;
    if (sortOrder.toString() == 'ASC') {
      this.sortOrder = TdDataTableSortingOrder.Descending
    }
    else {
      this.sortOrder = TdDataTableSortingOrder.Ascending
    }
    this.getData();
  }
github saurabh1e / open-pos / src / app / inventory / base-table / base-table.component.ts View on Github external
sort(name: string, sortOrder: TdDataTableSortingOrder): void {
    this.sortBy = name;
    if (sortOrder.toString() == 'ASC') {
      this.sortOrder = TdDataTableSortingOrder.Descending
    }
    else {
      this.sortOrder = TdDataTableSortingOrder.Ascending
    }
    this.getData();
  }
  search(searchTerm: string): void {