JsonLayoutOptions
JsonLayoutOptions class
Represents the options of json layout type.
class JsonLayoutOptions;
Constructors
| Constructor | Description |
|---|---|
| constructor() | Constructor of loading JSON layout options. |
Properties
| Property | Type | Description |
|---|---|---|
| arrayAsTable | boolean | Processes Array as table. |
| ignoreNull | boolean | Indicates whether ignoring null value. |
| ignoreTitle | boolean | Ingores titles of attributes |
| convertNumericOrDate | boolean | Indicates whether converting the string in json to numeric or date value. |
| numberFormat | string | Gets and sets the format of numeric value. |
| dateFormat | string | Gets and sets the format of date value. |
| titleStyle | Style | Gets and sets the style of the title. |
| keptSchema | boolean | Indicates whether keeping schema of this json. |
Methods
| Method | Description |
|---|---|
| getArrayAsTable() | @deprecated. Please use the ‘arrayAsTable’ property instead. Processes Array as table. |
| setArrayAsTable(boolean) | @deprecated. Please use the ‘arrayAsTable’ property instead. Processes Array as table. |
| getIgnoreNull() | @deprecated. Please use the ‘ignoreNull’ property instead. Indicates whether ignoring null value. |
| setIgnoreNull(boolean) | @deprecated. Please use the ‘ignoreNull’ property instead. Indicates whether ignoring null value. |
| getIgnoreTitle() | @deprecated. Please use the ‘ignoreTitle’ property instead. Ingores titles of attributes |
| setIgnoreTitle(boolean) | @deprecated. Please use the ‘ignoreTitle’ property instead. Ingores titles of attributes |
| getConvertNumericOrDate() | @deprecated. Please use the ‘convertNumericOrDate’ property instead. Indicates whether converting the string in json to numeric or date value. |
| setConvertNumericOrDate(boolean) | @deprecated. Please use the ‘convertNumericOrDate’ property instead. Indicates whether converting the string in json to numeric or date value. |
| get_NumberFormat() | @deprecated. Please use the ’numberFormat’ property instead. Gets and sets the format of numeric value. |
| setNumberFormat(string) | @deprecated. Please use the ’numberFormat’ property instead. Gets and sets the format of numeric value. |
| get_DateFormat() | @deprecated. Please use the ‘dateFormat’ property instead. Gets and sets the format of date value. |
| setDateFormat(string) | @deprecated. Please use the ‘dateFormat’ property instead. Gets and sets the format of date value. |
| getTitleStyle() | @deprecated. Please use the ’titleStyle’ property instead. Gets and sets the style of the title. |
| setTitleStyle(Style) | @deprecated. Please use the ’titleStyle’ property instead. Gets and sets the style of the title. |
| getKeptSchema() | @deprecated. Please use the ‘keptSchema’ property instead. Indicates whether keeping schema of this json. |
| setKeptSchema(boolean) | @deprecated. Please use the ‘keptSchema’ property instead. Indicates whether keeping schema of this json. |
| isNull() | Checks whether the implementation object is null. |
constructor()
Constructor of loading JSON layout options.
constructor();
arrayAsTable
Processes Array as table.
arrayAsTable : boolean;
ignoreNull
Indicates whether ignoring null value.
ignoreNull : boolean;
ignoreTitle
Ingores titles of attributes
ignoreTitle : boolean;
convertNumericOrDate
Indicates whether converting the string in json to numeric or date value.
convertNumericOrDate : boolean;
numberFormat
Gets and sets the format of numeric value.
numberFormat : string;
dateFormat
Gets and sets the format of date value.
dateFormat : string;
titleStyle
Gets and sets the style of the title.
titleStyle : Style;
keptSchema
Indicates whether keeping schema of this json.
keptSchema : boolean;
Remarks
Sometimes we will save the file to JSON after loading JSON file.
getArrayAsTable()
@deprecated. Please use the ‘arrayAsTable’ property instead. Processes Array as table.
getArrayAsTable() : boolean;
setArrayAsTable(boolean)
@deprecated. Please use the ‘arrayAsTable’ property instead. Processes Array as table.
setArrayAsTable(value: boolean) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | The value to set. |
getIgnoreNull()
@deprecated. Please use the ‘ignoreNull’ property instead. Indicates whether ignoring null value.
getIgnoreNull() : boolean;
setIgnoreNull(boolean)
@deprecated. Please use the ‘ignoreNull’ property instead. Indicates whether ignoring null value.
setIgnoreNull(value: boolean) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | The value to set. |
getIgnoreTitle()
@deprecated. Please use the ‘ignoreTitle’ property instead. Ingores titles of attributes
getIgnoreTitle() : boolean;
setIgnoreTitle(boolean)
@deprecated. Please use the ‘ignoreTitle’ property instead. Ingores titles of attributes
setIgnoreTitle(value: boolean) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | The value to set. |
getConvertNumericOrDate()
@deprecated. Please use the ‘convertNumericOrDate’ property instead. Indicates whether converting the string in json to numeric or date value.
getConvertNumericOrDate() : boolean;
setConvertNumericOrDate(boolean)
@deprecated. Please use the ‘convertNumericOrDate’ property instead. Indicates whether converting the string in json to numeric or date value.
setConvertNumericOrDate(value: boolean) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | The value to set. |
get_NumberFormat()
@deprecated. Please use the ’numberFormat’ property instead. Gets and sets the format of numeric value.
get_NumberFormat() : string;
setNumberFormat(string)
@deprecated. Please use the ’numberFormat’ property instead. Gets and sets the format of numeric value.
setNumberFormat(value: string) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | string | The value to set. |
get_DateFormat()
@deprecated. Please use the ‘dateFormat’ property instead. Gets and sets the format of date value.
get_DateFormat() : string;
setDateFormat(string)
@deprecated. Please use the ‘dateFormat’ property instead. Gets and sets the format of date value.
setDateFormat(value: string) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | string | The value to set. |
getTitleStyle()
@deprecated. Please use the ’titleStyle’ property instead. Gets and sets the style of the title.
getTitleStyle() : Style;
Returns
setTitleStyle(Style)
@deprecated. Please use the ’titleStyle’ property instead. Gets and sets the style of the title.
setTitleStyle(value: Style) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | Style | The value to set. |
getKeptSchema()
@deprecated. Please use the ‘keptSchema’ property instead. Indicates whether keeping schema of this json.
getKeptSchema() : boolean;
Remarks
Sometimes we will save the file to JSON after loading JSON file.
setKeptSchema(boolean)
@deprecated. Please use the ‘keptSchema’ property instead. Indicates whether keeping schema of this json.
setKeptSchema(value: boolean) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | The value to set. |
Remarks
Sometimes we will save the file to JSON after loading JSON file.
isNull()
Checks whether the implementation object is null.
isNull() : boolean;