So I'm trying to update the value of a the text attribute (name) in a cell model without using the inspector, I need this to update both the inspector field and linked cell model value. No idea how to do this. Is it possible?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
It is a little hard to tell exactly what you mean from your question, plus I don't have a Rappid license so I can't test the UI Inspector part :o( However assuming I understand you properly...
...if you extend the prototype of a shape with a property you can then databind to it in Angular as normal and it automagically updates the shape as you change the property.
I guess this will also update the inspector cell too, but I can't test this because I don't have a Rappid license as I said.
So if you add a name property to a shape like this:
You can expose the element you want to edit on your controllers scope and bind to it. The HTML:
The controller:
Working jsfiddle here: http://jsfiddle.net/r7n9t9s6/3/