mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
Revert _applyXMLAttributes to set style, rows, columns and fontAttributes as properties (#4911)
This commit is contained in:
@ -768,7 +768,11 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
|
||||
* Now attributes are expected to be set as plain properties on the view instances.
|
||||
* @deprecated
|
||||
*/
|
||||
public _applyXmlAttribute(): boolean {
|
||||
public _applyXmlAttribute(attribute: string, value: string): boolean {
|
||||
if (attribute === "style" || attribute === "rows" || attribute === "columns" || attribute === "fontAttributes") {
|
||||
this[attribute] = value;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user