Coder Social home page Coder Social logo

Comments (4)

lorenzofox3 avatar lorenzofox3 commented on August 23, 2024

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.

charlietfl avatar charlietfl commented on August 23, 2024

@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.

charlietfl avatar charlietfl commented on August 23, 2024

@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.

barroyo avatar barroyo commented on August 23, 2024

Thanks @lorenzofox3, updating version fixed it.

from smart-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.