Skip to content

Access element in ObjectElement with dot syntax #231

Closed Answered by adamberecz
jefffairson asked this question in Questions
Discussion options

You must be logged in to vote

You cannot have . in an element name. If you're looking to add multiple team members, it's recommended to use ListElement instead:

<Vueform
  ref="form$"
  v-model="data"
  class="register-form"
  sync
>
  <ObjectElement
    name="team"
    :schema="teamSchema"
  />
  <ListElement
    name="members"
    :object="memberSchema"
  />
</Vueform>

Than, you can use form$.value.el$('members.0.saveMember').

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jefffairson
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants