mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
Private methods of gird prefixed with _
This commit is contained in:
@ -298,11 +298,11 @@ export class GridLayout extends layouts.LayoutBase implements definition.GridLay
|
|||||||
|
|
||||||
_applyXmlAttribute(attributeName: string, attributeValue: any): boolean {
|
_applyXmlAttribute(attributeName: string, attributeValue: any): boolean {
|
||||||
if (attributeName === "columns") {
|
if (attributeName === "columns") {
|
||||||
this.setColumns(attributeValue);
|
this._setColumns(attributeValue);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (attributeName === "rows") {
|
else if (attributeName === "rows") {
|
||||||
this.setRows(attributeValue);
|
this._setRows(attributeValue);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -386,12 +386,12 @@ export class GridLayout extends layouts.LayoutBase implements definition.GridLay
|
|||||||
throw new Error("Element is not View or its descendant.");
|
throw new Error("Element is not View or its descendant.");
|
||||||
}
|
}
|
||||||
|
|
||||||
private setColumns(value: string) {
|
private _setColumns(value: string) {
|
||||||
this._cols = GridLayout.parseItemSpecs(value);
|
this._cols = GridLayout.parseItemSpecs(value);
|
||||||
this.invalidate();
|
this.invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
private setRows(value: string) {
|
private _setRows(value: string) {
|
||||||
this._rows = GridLayout.parseItemSpecs(value);
|
this._rows = GridLayout.parseItemSpecs(value);
|
||||||
this.invalidate();
|
this.invalidate();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user