smart-table

AngularJS smart-table search within multiple columns

∥☆過路亽.° 提交于 2019-12-04 20:52:01
Smart-table has a built in functionality to search through all columns (st-search) or through one desired column (st-search="'firstName'). Is it possible to do a search within several columns (not all)? Example: if I have table like this: name, nickname, address with such data: John, JJ, Some address Steve, John, also address Jane, Jane, John-village and do a search for 'John' only first two columns should be as result. Is it possible? floatingpurr I have a similar problem and I solved using the hints in this post . Smart Table doc says: The stSetFilter replaces the filter used when searching

How to integrate Smart Table `st-search` with ng-model?

ぃ、小莉子 提交于 2019-12-02 18:38:15
问题 How to set input search value that not thought user input on Smart Table? ?? here is my code,When user click the check box,The input field is auto input "Sam", but the table record is not filter. and update.... Here is my code: <body> <div class='container' ng-app='smarttabledemo' ng-controller='smarttabledemo'> <table st-table='data' class='table'> <thead> <tr> <th colspan='999'> <input name="myCheck[]" type="checkbox" id="myCheck" st-submit-search ng-model="confirmed" ng-true-value="30" ng

AngularJS smart-table strange behavior with nested objects and st-search

落爺英雄遲暮 提交于 2019-12-01 06:02:15
I'm trying to implement the Smart Table module in my AngularJS app. I'd prefer this over some others mainly because the others seemed require a lot of boilerplate code in my controller and I like to keep my controllers as DRY as possible. But I'm open to other modules that can accomplish the same thing without boilerplate. It works great when dealing with a straight-up array of objects, but if some of those objects have nested objects, the filtering and sorting has strange behavior. This will take some explaining so bear with me. First of all, here is my array of nested objects (shortened for

How to edit contents in Angular js Smart Table

微笑、不失礼 提交于 2019-11-30 05:13:09
I am quite new to java script, so I must apologise if this seems basic. How can I edit rows tables in Smart-Table with Angularjs? There doesn't seem to be a tutorial with the new Smart-Table. I would like to create a simple form for users to enter the hours open for a particular place. I have created buttons which can add and remove rows on the table, but when I add in contenteditable="true" none of the changes are persisted when I update the object. I understand that the contenteditable is a specific html5 parameters independent of smart-table, but I don't understand how else I can update the

How to edit contents in Angular js Smart Table

*爱你&永不变心* 提交于 2019-11-29 03:07:00
问题 I am quite new to java script, so I must apologise if this seems basic. How can I edit rows tables in Smart-Table with Angularjs? There doesn't seem to be a tutorial with the new Smart-Table. I would like to create a simple form for users to enter the hours open for a particular place. I have created buttons which can add and remove rows on the table, but when I add in contenteditable="true" none of the changes are persisted when I update the object. I understand that the contenteditable is a

Smart-table - Setting page from code

拜拜、爱过 提交于 2019-11-28 11:26:38
I'm using the very good table library Smart-table to display my data. I am using a custom pagination template. I would however like to be able to set page 1 from the code. I have read up on the st-pipe directive it exposes, but it seems that I would need to re-write the whole filtering/pagination/sorting code myself if I implement that. I'm after a simple way to programatically set a page from outside of the st-pagination directive that exists in my table's tfoot <table st-table="displayedCollection" st-safe-src="tags" class="table table-hover"> <tbody> <tr st-select-row="tag" st-select-mode=

Best way to represent a Grid or Table in AngularJS with Bootstrap 3? [closed]

有些话、适合烂在心里 提交于 2019-11-26 17:59:29
I am creating an App with AngularJS and Bootstrap 3. I want to show a table/grid with thousands of rows. What is the best available control for AngularJS & Bootstrap with features like Sorting, Searching, Pagination etc. After trying out ngGrid, ngTable, trNgGrid and Smart Table , I have come to the conclusion that Smart Table is by far the best implementation AngularJS-wise and Bootstrap-wise. It is built exactly the same way as you would build your own, naive table using standard angular. On top of that, they have added a few directives that help you do sorting, filtering etc. Their approach