Questions tagged [smart-table]

Table modules by Renard Laurent (lorenzofox3) for AngularJS, Angular, React, Preact, Vue.js, Flaco, and Vanilla JS. Use this tag together with the respective framework / library tag. This tag is NOT related to "smart table" from SAPUI5.

An easy to use Table / Grid module for a limited set of frameworks. It is meant to be easily configurable but also easily customizable.

Public GitHub repos:

327 questions
0
votes
2 answers

Unit testing an AngularJS (Smart Table) directive

I am working with "Smart Table" and will be using their example plugin where a checkbox selects a row in a table: http://lorenzofox3.github.io/smart-table-website/#section-custom I am writing a unit test for this directive, code below, this is…
Pianoc
  • 763
  • 1
  • 11
  • 32
0
votes
1 answer

How do I pass the column I wish to sort on to smart-table in Angulajs

I am using smart-table to display generic lists of data built up as an array of objects in code. I wish to be able to apply sorting on any of the columns, how do I pass the column name to sort on to the getter? At the moment I can only sort on a…
0
votes
1 answer

show/hide columns example for smart-table?

ui-grid has a flag for enableGridMenu: true which provides a dropdown menu to show/hide columns. Here is an example: http://ui-grid.info/docs/#/tutorial/304_grid_menu Does smart-table offer any OOTB show/hide feature or already available extension…
JStark
  • 2,788
  • 2
  • 29
  • 37
0
votes
2 answers

Smart-Table - AngularJs - Wrap within a directive

I'm very new to AngularJs and trying to "wrap" the Smart-Table plugin inside a directive. I can get the rows but the pagination is not showing Currently this is what I did. app.directive('grid', [ function () { return { restrict:…
Stan92
  • 453
  • 1
  • 8
  • 21
0
votes
1 answer

Issue with Angular js smart table changing the data with button click

I am using angular js smart table in my application. Every thing works fine during initial load. However I have a button (it is outside smart table) to refresh the data when some of the criteria changes. On button click I am calling changeView…
Madasu K
  • 1,813
  • 2
  • 38
  • 72
0
votes
3 answers

how to hide smart table after deleting all rows?

I am displaying smart table using ng-show and sg-hide ..condition is data is null then hiding table and data existed showing table. It is working every time page fresh load, but I want to apply if emptied the table by deleting rows. angularjs and…
user3523448
  • 35
  • 1
  • 2
  • 8
0
votes
1 answer

AngularJS, replacing hard-coded json with $http.get and rendering the result

If I switch from the hard-coded items list in the following jsfiddle http://jsfiddle.net/rubyoma/bFJZK/ using a plain $http $http.get('/mypath.json').then (response) => response.data) The data is async and come back after the table is rendered.…
oma
  • 38,642
  • 11
  • 71
  • 99
-1
votes
1 answer

Why do options appear twice when adding select filter to ng2-smart table with custom data?

I am trying to add select filter to smart table and I am setting options with custom data. Select options data appear but adds as many empty options as the number of data. When I click on blank options, it's filtering the data. How can I remove…
rosa
  • 13
  • 1
  • 8
-1
votes
1 answer

Javascript dd-mm-yyyy date format

I use st-table of angular js. One of the columns, there is date information which has to be in format dd-mm-yyyy. I have found some ways to convert it like; new Date(year,month,day).toLocaleDateString('en-US') but, on that case, it is converted to…
Ahmet Tuğrul Bayrak
  • 3,466
  • 2
  • 15
  • 27
-1
votes
3 answers

How to clear angular smart filter upon clicking reset button

Here I am developing simple angular html form, I am using angular smart table. How can i clear smart table search filter after i click reset button My html
sgl
  • 563
  • 1
  • 6
  • 16
-1
votes
1 answer

example of getting data from server Nodejs with angular smart table

I'm using Angular smart table to display data from my database using Node.js. My problem is that I don't know how to get data from the server with $http.get or $http.post, passing filters and the number of the current page. This is the documentation…
Samir Ait
  • 311
  • 1
  • 3
  • 13
-1
votes
1 answer

How to handle each row selection using checkbox in angularjs smart table?

How to hadnle the selection of row in smart table using checkbox at each row..and displaying count of selected rows after every cycle? It must using angularjs and smart-table [source] http://lorenzofox3.github.io/smart-table-website/
user3523448
  • 35
  • 1
  • 2
  • 8
1 2 3
21
22