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 class="btn btn-primary btn-sm ml-1 mb-1" data-toggle="tooltip" title="Editar Livro">' +
      ' <i class="fa fa-edit"></i> </span>';
    const btnCancelDonation =
      '<span class="btn btn-danger btn-sm ml-1 mb-1" data-toggle="tooltip" title="Cancelar Doação">' +
      ' <i class="fa fa-trash"></i> </span>';
    const btnDonate =
      '<span class="btn btn-warning btn-sm ml-1 mb-1" data-toggle="tooltip" title="Escolher Donatário">' +
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 2 years ago

Package Health Score

56 / 100
Full package analysis

Similar packages