I’m making a big form in HTML and I want to set a property to all of the form elements. In JS I would just set elementsConfig property, but I don’t get how to make it in pure HTML. Here is an example (that doesn’t work):
<div data-view="form" data-elements-config="{ labelPosition: 'top' }">...</div>
damn… how to post the code here?
Put the code within ~~~js
(or ~~~html
) and ~~~
.
elementsConfig
can be defined as
<div data-view="form" data-id="formView">
<config name="elementsConfig" label="Test"></config>
<div data-view="text" data-name="title"></div>
. . .
</div>
But unfortunately, current implementation of the html-markup will not work with the CamelCase properties (i.e. labelPosition and some other).
I see. Thanks.