Comments (4)
hello,
This has been fixed in the latest version 0.1.4. So make sure you have the latest (I have not put it on bower yet).
here is a running example.
If the problem persists, make sure you work on references to you data array on every controller and not on copies.
hope this helped.
Laurent
from smart-table.
@lorenzofox3 The addition of $watch
on the dataRow
is extremely helpful! One other tweak you might consider is using html()
method rather than text()
to populate cells. This allows returning html from the formatFunction
as well as I added a modifiction to use a cellTemplate
option ( similar to angular directives option) rather than having to create a URL and then using html()
for that as well.
Example within defaultContent()
if(column.cellTemplate){
element.html(column.cellTemplate);
from smart-table.
@lorenzofox3 Slight bug with new $.watch('dataRow')
in 1.1.4 upgrade:
If using a cell template, cell only gets updated with 'formattedValue' text, not with cellTemplate html.
from smart-table.
Thanks @lorenzofox3, updating version fixed it.
from smart-table.
Related Issues (20)
- Natural sort of alpha numeric string HOT 1
- st-sort-default="true" is not working fine with custom sort HOT 6
- st-ratio can not be declared as a function HOT 1
- st-sort-default="true" not working when table first loads. HOT 2
- Delete row after searching HOT 1
- When I debug st-table safeCopy object it returns empty array. HOT 1
- sever side pagination
- Paginated data updates HOT 1
- Angularjs plugin smart table st-search through random text entered like datatablejs search HOT 7
- get filter date in table using start and end date in angular 5 HOT 1
- Smart table with two custom date filters HOT 1
- Virtualisation feature
- Manipulate the current page within a controller for pagination
- Serverside pagination issue
- Smart table documentation website melts my computer HOT 1
- aria-sort order is wrong
- Question: how to programmatically go to a specific page?
- Custom filtering on single column HOT 1
- How to pass argument with st-pipe
- st-sort does not work when start with number.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smart-table.