Skip to content

Instantly share code, notes, and snippets.

@kwong93
Created February 28, 2017 00:17
Show Gist options
  • Save kwong93/32f5f76fe00d1fc67bb5575335dac4c6 to your computer and use it in GitHub Desktop.
Save kwong93/32f5f76fe00d1fc67bb5575335dac4c6 to your computer and use it in GitHub Desktop.
nativescript propertyCommitted ui pro dataform
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