brutusin / json-forms

JSON Schema to HTML form generator, supporting dynamic subschemas (on the fly resolution). Extensible and customizable library with zero dependencies. Bootstrap add-ons provided
http://brutusin.org/json-forms
Apache License 2.0
607 stars 168 forks source link

postRender problem? #74

Closed fabifabi closed 7 years ago

fabifabi commented 7 years ago

postRender is not call if we do "addItem" in a tab....is it normal?

idelvall commented 7 years ago

hi, what do you mean by "a tab"? Can you create a JSFiddle to reproduce the problem?

fabifabi commented 7 years ago

an array, sorry for my french ^^

fabifabi commented 7 years ago

two solution : postRender is call when it geenrate a new cell of my array (when user click on "add item") OR more easy, put a class "additem" on the button, as it,i can know a new rendering was done ?

idelvall commented 7 years ago

postRender is called once, when the form is rendered.

Use a decorator instead.

https://github.com/brutusin/json-forms#static-members