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
1
vote
0 answers

ng2 smart table response code handle request

I am using Ng2 -Smart table for the server side pagination ,that i customized post request to the server .The server responds with the data along with rescode.Based on the rescode i needs to load the data to the smart table i,e source:…
srinath KB
  • 11
  • 2
1
vote
1 answer

Pass value to extends plugin ng2 smart table

I've checked the document and source code for pagination implementation (advanced-example-server.component.ts). And found that the ServerDataSource it used had only implemented pagination via HTTP GET (_sort, _limit, _page, etc parameters expose in…
sridharan
  • 2,011
  • 10
  • 36
  • 61
1
vote
1 answer

How to add Datetimepicker in ng2-smart-table

I wanted to add a datetimepicker component to the ng2-smart-table component. All I'm able to do right now is add a datepicker, but I want to add time in that as well. I have tried with some owl-date-time component. but it's messing up the entire…
Omkar Khandekar
  • 55
  • 2
  • 14
1
vote
2 answers

How to fetch data from API in ng2 smart table?

I have an angular app using Ng2 smart table and need to fetch data from API I create a method to fetch data from API (but I didn't know it works or not ) and the main problem is how to get data to show in ng2 smart table Following is my HTML code …
Mohamed Elkast
  • 307
  • 1
  • 6
  • 19
1
vote
1 answer

How can I move the delete action to the last column in an ng2 smart table?

How can I move the delete action to the last column in an 'ng2' smart table? I want the only delete action in the last column of my table in my ng2 smart table. Can someone please assist me with this issue? The settings and the code of the table I…
1
vote
1 answer

Custom Icons on smart-table component angular

It can't show icons in action buttons, when I inspect the page, it doesn't load me ":: before" I can't see icons in buttons! How can I replace ionicons for eva icons. I added the smart table to my project but I was not successful in showing icons…
jorocoimbra
  • 13
  • 1
  • 3
1
vote
1 answer

Angular & ng2-smart-table: Multi selectmode checkbox disable

I'm using ng2-smart-table to display some data, i've set the selectMode to 'multi' in order to have checkboxes on the left side. In the data i have an array of objects which come with a property "set" which is a boolean and can either be true or…
Dusan
  • 53
  • 1
  • 9
1
vote
0 answers

Angular2+ ng2-smart-table: Get value of single cell when click Edit Button

In my ng2-smart-table i have two column: Description and Color. On column Color i have a renderComponent with implements an input with type="color" and on color change, it send to service the value of new color selected: onColorChange(newColor:…
20.miles
  • 189
  • 2
  • 15
1
vote
1 answer

Dynamically load component into dynamic position

UPDATED (As I understood the issue better): I would like to show a component depending on where the user clicks (which table row), I'm using ng2-smart-table, now the problem is there is no selector to where I need to load the component…
1
vote
1 answer

How to apply scroll for table body in ng2-smart-table using angular 2

I'm using ng2-smart-table which is having 19 columns, it is going out of the frame in the dashboard. So I need to apply horizontal scroll to the table body. Am using ng2-smart-table in my angular 2 project :host /deep/ table { width: 1200px…
1
vote
2 answers

Angular translation with ng2-smart-table

I am using ng2-smart-table. I am giving heading for the column from component.ts file. settings = { actions: { add: false, edit: false, delete: false }, columns: { date: { title: 'Date' }, …
1
vote
1 answer

Click function in ng2-smart-table column

I have been trying to get a click function to be included in a ng2-smart-table column. It seems angular (click) event and javascipt "onclick" do not get rendered in the table. The code is below public settings = { selectMode: 'single', …
dunwan
  • 1,577
  • 2
  • 16
  • 14
1
vote
1 answer

How get angular ng2-smart-table filtering and sorting external events?

I have REST API backend so all sorting, filtering and pagination is manages by backend. On my Angular aplictation I want to display data at ng2 smart table. After clicking on table header column name (sorting asc, desc) is table content sorted only…
Filip
  • 143
  • 1
  • 8
1
vote
1 answer

How to update column's property value in ng2-smart-table?

In ng2-smart-table I have a one setting like this. name: { title: 'Name', filter: true, addable: false } As you can see I have set addable false by default. Now in one case I have to make it true. What I have tried: Try 1: …
Sachin Shah
  • 4,503
  • 3
  • 23
  • 50
1
vote
1 answer

Obtaining the value column key inside a cell renderer?

Is it possible to obtain the column key inside a cell renderer? For example in the `CustomRenderComponent Demo the value of the cell and the row data is injected like this: @Input() value: string | number; @Input() rowData: any; is there a way to…
Ole
  • 41,793
  • 59
  • 191
  • 359