Skip to content

Instantly share code, notes, and snippets.

@chootka
Last active August 25, 2018 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chootka/b9641965b567355780bf8939ebeb8c76 to your computer and use it in GitHub Desktop.
Save chootka/b9641965b567355780bf8939ebeb8c76 to your computer and use it in GitHub Desktop.
backbone schema to json scheme for vue
Select -> select
type -> type
title -> label
options.val -> values
.label -> name
Text -> text
(no equivalent) -> type (“input”)
type -> inputType (“text”)
title -> label
editorClass -> ? could be custom field
editorAttrs.maxlength -> maxlength
.disabled -> ? :disabled (custom field)
help -> ?
TextArea -> textArea
type -> type
title -> label
titleHTML -> ? could be custom field, or we just pass HTML anyway into label
editorAttrs.maxlength -> max
fieldAttrs.data-bind -> ?
.data-target -> ?
.data-condition -> ?
fieldClass -> ? could be custom field
Checkboxes -> checkbox
type -> type
title -> label
options.val -> values
.label -> name
fieldAttrs.data-bind -> ?
.data-target -> ?
.data-condition -> ?
fieldsets -> groups
legend -> legend
fields -> fields
“key of field” -> full field obj { }
Select -> select
type -> type
title -> label
options.val -> values
.label -> name
Text -> text
(no equivalent) -> type (“input”)
type -> inputType (“text”)
title -> label
editorClass -> ? could be custom field
editorAttrs.maxlength -> maxlength
.disabled -> ? :disabled (custom field)
help -> ?
TextArea -> textArea
type -> type
title -> label
titleHTML -> ? could be custom field, or we just pass HTML anyway into label
editorAttrs.maxlength -> max
fieldAttrs.data-bind -> ?
.data-target -> ?
.data-condition -> ?
fieldClass -> ? could be custom field
Checkboxes -> checkbox
type -> type
title -> label
options.val -> values
.label -> name
fieldAttrs.data-bind -> ?
.data-target -> ?
.data-condition -> ?
fieldsets -> groups
legend -> legend
fields -> fields
“key of field” -> full field obj { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment