How to use ng2-smart-table - 4 common examples

To help you get started, we’ve selected a few ng2-smart-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 SharebookBR / sharebook-frontend / src / app / components / book / list / list.component.ts View on Github external
ngOnInit() {
    this.getAllBooks();
    this.books = new LocalDataSource(this.myBookArray);
    this.books.setSort([{ field: 'creationDate', direction: 'desc' }]);

    // Carrega Status do ENUM BookDonationStatus
    const myBookDonationStatus = new Array();
    Object.keys(BookDonationStatus).forEach(key => {
      myBookDonationStatus.push({ value: BookDonationStatus[key], title: BookDonationStatus[key] });
    });

    const btnEdit =
      '<span title="Editar Livro" data-toggle="tooltip" class="btn btn-primary btn-sm ml-1 mb-1">' +
      ' <i class="fa fa-edit"></i> </span>';
    const btnCancelDonation =
      '<span title="Cancelar Doação" data-toggle="tooltip" class="btn btn-danger btn-sm ml-1 mb-1">' +
      ' <i class="fa fa-trash"></i> </span>';
    const btnDonate =
      '<span title="Escolher Donatário" data-toggle="tooltip" class="btn btn-warning btn-sm ml-1 mb-1">' +</span>
github Fundator / IMO-Maritime-Single-Window / IMOMaritimeSingleWindow / Client / src / app / main-content / content-container / port-call / registration / forms / dpg / dpg.component.ts View on Github external
constructor(
    private dpgService: DpgService,
    private shipStoresService: FalShipStoresService,
    private modalService: NgbModal,
  ) {
    this.dpgSource = new LocalDataSource(this.dpgOnBoardList);
  }
github EYBlockchain / nightfall / ui / src / app / pages / user-accounts / user-accounts.component.ts View on Github external
constructor(
    private toastr: ToastrService,
    private accountService: AccountsApiService
  ) {
    super('');
    this.source = new LocalDataSource();
    this.loadAccountDetails();
  }

ng2-smart-table

Angular Smart Table

MIT
Latest version published 4 years ago

Package Health Score

51 / 100
Full package analysis

Similar packages