cpr.data.header.Header

Index

Properties
Name Type Description
info String Returns the column information value.
Methods
Name Return Type Description
getColumnType HeaderType Returns the column type.
getDataType DataType Returns the data type.
getInfo String Returns the column information value.
getName String Returns the name.
getUserAttrNames String[] Returns all custom attribute names.
removeAllUserAttr Delete all custom attributes.
removeUserAttr Removes user-defined attributes for a specific attribute name.
setInfo Sets the column information value.
userAttr Object Specifies custom properties.

Properties

info
deprecated2018.11.05 API unification work. Please use setInfo.
type String
get
Returns the column information value.
set
Sets the column information value.

Methods

getColumnType()
Returns the column type.
return HeaderType column type
cpr.data.header.HeaderType.ORIGINAL_COLUMN : Manage the original value and the current value separately, and when the value of the corresponding column is changed, the row state is affected.
cpr.data.header.HeaderType.DISPLAY_COLUMN : It has only the current value and does not affect the row state when the value of the corresponding column is changed.
getDataType()
Returns the data type.
return DataType data type.
cpr.data.tabledata.DataType.STRING = "string";
cpr.data.tabledata.DataType.NUMBER = "number";
cpr.data.tabledata.DataType.DECIMAL = "decimal";
cpr.data.tabledata.DataType.EXPRESSION = "expression";
getInfo()
Returns the column information value.
return String Information value.
getName()
Returns the name.
return String
getUserAttrNames()
Returns all custom attribute names.
return String[] An array of all custom attribute names.
removeAllUserAttr()
Delete all custom attributes.
removeUserAttr(key)
Removes user-defined attributes for a specific attribute name.
Parameters
name type description
key String The custom attribute name to remove.
setInfo(info)
Sets the column information value.
Parameters
name type description
info String Information value to set
userAttr(key, value)
Specifies custom properties.
Parameters
name type description
key String The attribute name to assign
value String The attribute value to specify.
return Object
userAttr(key)
Returns a user-defined property.
Parameters
name type description
key String The attribute name to get.
return String Custom properties.
userAttr(values)
Specify multiple custom properties at once.
Parameters
name type description
values {[key:string]: String} A JSON object containing custom attribute keys/values.
return Object
userAttr()
Get all custom properties in the form of a map.
return {[key:string]: String}