-
-
Save kwong93/32f5f76fe00d1fc67bb5575335dac4c6 to your computer and use it in GitHub Desktop.
nativescript propertyCommitted ui pro dataform
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
exports.onPropertyCommitted = function (args) { | |
if (args.propertyName == "height") { | |
var ageEntityProperty = dataForm.getPropertyByName("age"); | |
if (ageEntityProperty) { | |
if (args.entityProperty.originalValue == 2) { | |
ageEntityProperty.hidden = true; | |
} else { | |
ageEntityProperty.hidden = false; | |
} | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment