Last active
August 25, 2018 19:36
-
-
Save chootka/b9641965b567355780bf8939ebeb8c76 to your computer and use it in GitHub Desktop.
backbone schema to json scheme for vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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