mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Mark text property as special and set it with a string comming from builder.
This commit is contained in:
@@ -29,6 +29,9 @@ function ensureVisualState() {
|
||||
registerSpecialProperty("class", (instance: definition.View, propertyValue: string) => {
|
||||
instance.className = propertyValue;
|
||||
});
|
||||
registerSpecialProperty("text", (instance, propertyValue) => {
|
||||
instance.set("text", propertyValue);
|
||||
});
|
||||
|
||||
function getEventOrGestureName(name: string): string {
|
||||
return name.indexOf("on") === 0 ? name.substr(2, name.length - 2) : name;
|
||||
|
||||
Reference in New Issue
Block a user