Validate Model #13157
Answered
by
m1ga
beppo-ivel
asked this question in
Q&A
Validate Model
#13157
-
If I execute
|
Beta Was this translation helpful? Give feedback.
Answered by
m1ga
Nov 1, 2021
Replies: 1 comment 3 replies
-
Did you check the
and then m.save() or m.isValid() |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
beppo-ivel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you check the
Extending the Backbone.Model class
example at https://titaniumsdk.com/guide/Alloy_Framework/Alloy_Guide/Alloy_Models/Alloy_Collection_and_Model_Objects.html#extending-the-backbone-model-class ? That works fine and you can useisValid()
to check the validation. I don't know the syntaxAlloy.Models.test.set({attr1: "test", attr2: 0})
I useand then m.save() or m.isValid()