Open
Description
Could VFG provide a prop that sets the disabled
attribute on all <fieldset>
elements?
e.g. props: {disable:Boolean, ...}
and <fieldset :disabled="disable" ...>
EDIT: or provide a .disabled member at the schema top level, e.g.
{disabled: true, groups: [...]}
{disabled: true, fields: [...]}
Currently I do this in the parent:
mounted: function() {
if (this.disableForms)
this.$nextTick(function() {
for (var aEl = this.$refs.vfg.$el.firstChild; aEl; aEl = aEl.nextSibling)
if (aEl.nodeType === 1 && aEl.tagName === 'FIELDSET')
aEl.disabled = true;
});
},