JsonLayoutOptions

JsonLayoutOptions class

Represents the options of json layout type.

class JsonLayoutOptions;

Constructors

NameDescription
constructor()Constructor of loading JSON layout options.

Methods

MethodDescription
getArrayAsTable()Processes Array as table.
setArrayAsTable(boolean)Processes Array as table.
getIgnoreNull()Indicates whether ignoring null value.
setIgnoreNull(boolean)Indicates whether ignoring null value.
getIgnoreTitle()Ingores titles of attributes
setIgnoreTitle(boolean)Ingores titles of attributes
getConvertNumericOrDate()Indicates whether converting the string in json to numeric or date value.
setConvertNumericOrDate(boolean)Indicates whether converting the string in json to numeric or date value.
get_NumberFormat()Gets and sets the format of numeric value.
setNumberFormat(string)Gets and sets the format of numeric value.
get_DateFormat()Gets and sets the format of date value.
setDateFormat(string)Gets and sets the format of date value.
getTitleStyle()Gets and sets the style of the title.
setTitleStyle(Style)Gets and sets the style of the title.
getKeptSchema()Indicates whether keeping schema of this json.
setKeptSchema(boolean)Indicates whether keeping schema of this json.

constructor()

Constructor of loading JSON layout options.

constructor();

getArrayAsTable()

Processes Array as table.

getArrayAsTable() : boolean;

setArrayAsTable(boolean)

Processes Array as table.

setArrayAsTable(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getIgnoreNull()

Indicates whether ignoring null value.

getIgnoreNull() : boolean;

setIgnoreNull(boolean)

Indicates whether ignoring null value.

setIgnoreNull(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getIgnoreTitle()

Ingores titles of attributes

getIgnoreTitle() : boolean;

setIgnoreTitle(boolean)

Ingores titles of attributes

setIgnoreTitle(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

getConvertNumericOrDate()

Indicates whether converting the string in json to numeric or date value.

getConvertNumericOrDate() : boolean;

setConvertNumericOrDate(boolean)

Indicates whether converting the string in json to numeric or date value.

setConvertNumericOrDate(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

get_NumberFormat()

Gets and sets the format of numeric value.

get_NumberFormat() : string;

setNumberFormat(string)

Gets and sets the format of numeric value.

setNumberFormat(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

get_DateFormat()

Gets and sets the format of date value.

get_DateFormat() : string;

setDateFormat(string)

Gets and sets the format of date value.

setDateFormat(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getTitleStyle()

Gets and sets the style of the title.

getTitleStyle() : Style;

Returns

Style

setTitleStyle(Style)

Gets and sets the style of the title.

setTitleStyle(value: Style) : void;

Parameters:

ParameterTypeDescription
valueStyleThe value to set.

getKeptSchema()

Indicates whether keeping schema of this json.

getKeptSchema() : boolean;

Remarks

Sometimes we will save the file to JSON after loading JSON file.

setKeptSchema(boolean)

Indicates whether keeping schema of this json.

setKeptSchema(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

Remarks

Sometimes we will save the file to JSON after loading JSON file.