Giter Site home page Giter Site logo

_fieldName not set? about knockoutjs-reactor HOT 2 CLOSED

ziadj avatar ziadj commented on June 15, 2024
_fieldName not set?

from knockoutjs-reactor.

Comments (2)

ZiadJ avatar ZiadJ commented on June 15, 2024

The _fieldName property only shows up on parent fields, as the option name tagParentsWithName suggests. To let it show up on all fields you need to bypass the hasSubChildren condition in ``if (subHasChildren && options.tagParentsWithName === true && !sub['_fieldName'])`. You can achieve this by simply removing it for the time being. Guess I'll make it a standard option in the next update if this works out well for you.

As for the uncaught deletions you might consider using imageArr.remove(this) instead of imageArr.splice($index,1) as a quick workaround. Not sure why it's not working with splice but I'll look deeper into it when I have the time.

from knockoutjs-reactor.

ZiadJ avatar ZiadJ commented on June 15, 2024

The field names are no longer limited to the parents only, by default, in the latest beta version. Just make sure the tagFields option is set to true. As for deletions you need to need to use $root.imageArr.splice($index,1) or even $root.imageArr.remove($data) instead of imageArr.splice($index,1). I'll be updating the demo soon so that it can properly display the full location path for every update and that will include array indexes as well!

from knockoutjs-reactor.

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.