Revert _applyXMLAttributes to set style, rows, columns and fontAttributes as properties (#4911)

This commit is contained in:
Panayot Cankov
2017-10-03 15:40:27 +03:00
committed by GitHub
parent 27773e96a6
commit 1049fcc251

View File

@ -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;
}