mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
added class property to ViewBase (#3327)
This commit is contained in:
@@ -128,6 +128,13 @@ export class ViewBase extends Observable implements ViewBaseDefinition {
|
||||
return this._isLoaded;
|
||||
}
|
||||
|
||||
get class(): string {
|
||||
return this.className;
|
||||
}
|
||||
set class(v: string) {
|
||||
this.className = v;
|
||||
}
|
||||
|
||||
getViewById<T extends ViewBaseDefinition>(id: string): T {
|
||||
return <T>getViewById(this, id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user