Questions tagged [ng2-smart-table]

ng2-smart-table is smart table used in web development API

ng-smart-table is a smart table used in web development API like Angular 2+. It is simple to use. It performs CRUD operations easily with provided back-end support. It can sort data quickly. Table contains actions like Insert, Edit, Delete. Further documentation can be found on ng-smart-table

253 questions
3
votes
2 answers

Angular2 Smart Tables - Pass data to custom component

I'm using Angular2 and I'm trying to add a view link for each row in my Smart Table. I'm doing this using the custom type which allows me to render a custom component. The rendering process is working well but now I need to pass data (item's id)…
levis
  • 367
  • 7
  • 17
3
votes
1 answer

Using ng2-smart-table, can I change the value of a cell in a row after being added?

I'm using ng2-smart-table component in my project and I found an issue that is blocking me. I have a smart table (mode=inline) with 3 columns: id, column1 and column2. Id is not editable because until I call my backend and generate the row, I won't…
Javier de la Cueva
  • 816
  • 1
  • 5
  • 11
2
votes
1 answer

'Ng2SmartTableModule' does not appear to be an NgModule class.(-996002)

... Create a new project after using yarn add ng2-smart-table Have an error in imports (alias) class Ng2SmartTableModule import Ng2SmartTableModule 'Ng2SmartTableModule' does not appear to be a NgModule class.…
David Buloyan
  • 21
  • 1
  • 2
2
votes
1 answer

Dynamically update settings Ng2-smart-table

I want to update 'hideSubHeader' value after button click. The value in settings for 'hideSubHeader' gets updated but it does not reflect on my smart table. My Settings, settings = { hideSubHeader: true } After button click, newSettings() { …
shrey shah
  • 91
  • 2
  • 11
2
votes
2 answers

Ng2 smart table, getting multiple columns from one object

I'm using ng2 smart column to show transactions which contain an user object. I want to display the id user, name, and email in different columns. How can I do it? settings = { add: { addButtonContent: '', …
Ilyes Elayeb
  • 115
  • 1
  • 10
2
votes
0 answers

Smart table pagination issue while loading data from local storage

In ng2-smart table 'this.source.setPaging(pageNum, 25, true);' is not working, if we load data from local storage. Data is loading as expected, but setpaging is not working, we want to retain page number after reloading the page, is there any…
Suffian Shaukat
  • 265
  • 1
  • 2
  • 7
2
votes
0 answers

Is it possible to add a tooltip to column title in ng2-smart-table

Is it possible to add a tooltip to a column title in a ng2-smart-table? We are using "ng2-smart-table": "1.4.0", "@angular/core": "7.2.16" We have a tooltipComponent, below, this works great on the cell, we want to have the tooltip display when the…
JimBell68
  • 21
  • 2
2
votes
1 answer

Is it possible to use Standalone filter along with column filters?

I understand we can use a Standalone filter without individual column filters (https://akveo.github.io/ng2-smart-table/#/examples/using-filters) But is it possible to use both? I tried to implement it but could not. See…
2
votes
3 answers

Is it possible to customize the column header of ng2-smart-table with custom component or any other way?

I know there is a way to add a customComponent to ng2-smart-table cells. Is there any way I can do the same to column header? Basically I want to add a help icon next to the column header title and add a click event to the icon. Could not find any…
Nikhil Bharadwaj
  • 867
  • 4
  • 24
  • 42
2
votes
1 answer

Angular | ng2-smart-table how to sort table with ServerDataSource

I'm using ng2-smart-table in my angular application. Since we are dealing with massive amount of data, I implemented pagination infrastructure and used ServerDataSource instead of LocalDataSource. Everything works fine until it comes to sorting the…
Or Yaacov
  • 3,597
  • 5
  • 25
  • 49
2
votes
1 answer

how to pass data to ng2-smart-table renderComponent from http request?

I have a table with a custom component in a cell and a service that provides me some data to display. My custom component implements select. So, table's column looks like this: userRole: { title: 'User Role, type: 'custom', renderComponent:…
2
votes
1 answer

How to clear all user data when user clicked on cancel button while add data in ng2-smart-table?

In ng2-smart-table when user add data and instead of add data clicked on cancel button and again clicked on add then it shows old field data. I need to set that when user clicked on cancel button, His field data must be clear. Demo I have searched…
khushboo
  • 715
  • 2
  • 11
  • 24
2
votes
1 answer

ng2-smart-table derived column

I need to create a custom column in ng2-smart-table by calculating values of two columns. I tried using valuePrepareFunction() but it wont work OrderQuantity:{ title: 'OrderQuantity', }, UnitPrice:{ title: 'UnitPrice', …
Damitha
  • 23
  • 1
  • 6
2
votes
0 answers

ng2-smart-table set total pages

Looking at the server-side pagination example it seems like ng2-smart-table only displays the 2 previous and 2 next pages, however I'd like to display the total amount of pages I can have given the page size (if the amount of pages is too big then…
Danyx
  • 574
  • 7
  • 34
2
votes
5 answers

How to display custom icons on ng2-smart-table?

I can't display custom icons on the actions tab from ng2-smart-table. I have installed Eva Icons from Akevo Team and I want to use them. I have changed the edit button to show some custom icons but the problem is that nothing appears. On the left…
mihaij
  • 95
  • 2
  • 7
1 2
3
16 17