Skip to content

Add group disabled option to disable all fields within a group #594

Open
@networkimprov

Description

@networkimprov

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;
      });
},

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions