Skip to content

id of the field doesn't work #336

@gezichenshan

Description

@gezichenshan

I'm reading https://icebob.gitbooks.io/vueformgenerator/fields/field_properties.html.
the Common properties of field said we can set id as id of the field. but when I set the id="checkbox1" for a checkbox,

{
 type: "checkbox",
 id: "checkbox1",
 label: "¿Tu negocio es miembro de alguna asociación?",
 model: "xxx",
 required: true,
 styleClasses:['center-align-checkbox']
}

I opened console and got this things below:

<div class="form-group required center-align-checkbox field-checkbox">
  <label for="checkbox1">¿Tu negocio es miembro de alguna asociación?</label>
    <div class="field-wrap">
       <input type="checkbox">
    </div>
</div>

it just set the "checkbox1" as a for attribute value for label. no id here for my checkbox.

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