cpr.data.Row
Row.
Data Low.
Index
Name |
Return Type |
Description |
getAttr |
String |
Sets the specific properties of the current row. |
getAttrNames |
String[] |
Returns an array of all the attribute names of the current row. |
getAttrs |
{[attrName:string]: String} |
Returns a json object for all attributes of the current row. |
getBoolean |
Boolean |
Returns the data corresponding to the input columnName as a Boolean. |
getIndex |
Number |
Returns the index of the current row. |
getNumber |
Number |
Returns the data corresponding to the input columnName as a Number. |
getOriginalValue |
Object |
Returns the source data corresponding to the input columnName. |
getRowData |
RowConfigInfo |
Returns the row data of the current row in the format {columnName: value}. |
getState |
RowState |
Returns the state value of the current row. |
getStateString |
String |
Returns the current row's status value as a character. |
getString |
String |
Returns the data corresponding to the input columnName as a String. |
getValue |
Object |
Returns the value corresponding to the input column name. |
putValue |
Boolean |
The input rowIndex and the data corresponding to columnName change only the value without changing the row state. |
setAttr |
|
Sets the specific properties of the current row. |
setRowData |
Boolean |
It takes data in the format {columnName: value} and makes full changes to the data in the current row. |
setState |
|
Changes the state value of the current row. |
setValue |
Boolean |
Modify the data corresponding to the input columnName. |
Constructor
Methods
Sets the specific properties of the current row.
name |
type |
description |
attrName
|
String |
The attribute name to assign |
Returns an array of all the attribute names of the current row.
return
|
String[] |
An array of all attribute names |
Returns a json object for all attributes of the current row.
return
|
{[attrName:string]: String} |
\ {[attrName: string]: string} json object in key: value format for all attributes |
Returns the data corresponding to the input columnName as a Boolean.
name |
type |
description |
columnName
|
#column |
The columnName of the column for which to get the value. |
return
|
Boolean |
Boolean type of the data |
Returns the index of the current row.
return
|
Number |
Current row index |
Returns the data corresponding to the input columnName as a Number.
If the value is of type String and forced to Number, NaN is returned.
name |
type |
description |
columnName
|
#column |
The columnName of the column for which to get the value. |
return
|
Number |
Number of the data |
Returns the source data corresponding to the input columnName.
name |
type |
description |
columnName
|
#column |
The columnName of the column for which to get the value. |
Returns the row data of the current row in the format {columnName: value}.
name |
type |
description |
columntypeoptional
|
HeaderType |
defaultheader.HeaderType.ALL
|
|
return
|
RowConfigInfo |
Row data of the current row (key: columnName, value: json object of the value type).
{[columnName: string]: string | number} |
Returns the state value of the current row.
return
|
RowState |
Current status value of ROW.
State type:
CPR.Data.tabledata.rowstate.UNCHANGED: Unchanged state.
CPR.Data.tabledata.rowstate.Inserted: A new row added.
CPR.Data.tabledata.rowstate.updated: The row is modified.
CPR.Data.tabledata.rowstate.deleted: The row is deleted.
CPR.Data.tabledata.rowstate.Insertdeleted: The row has been added and deleted. |
Returns the current row's status value as a character.
name |
type |
description |
isAbbreviationoptional
|
Boolean |
defaulttrue
|
Whether to express an axial form. |
return
|
String |
The status value character of the current row.
Unchanged state: "UC", "UNCHANGED"
New row added: "I", "INSERTED"
Rows modified: "U", "UPDATED"
Deleted rows: "D", "DELETED"
The row was added and deleted: "ID", "INSERTDELETED" |
Returns the data corresponding to the input columnName as a String.
name |
type |
description |
columnName
|
#column |
The columnName of the column for which to get the value. |
return
|
String |
String of this data |
Returns the value corresponding to the input column name.
name |
type |
description |
columnName
|
String |
The columnName of the column for which to get the value. |
The input rowIndex and the data corresponding to columnName change only the value without changing the row state.
name |
type |
description |
columnName
|
#column |
The columnName of the column to modify |
value
|
Object |
Value to modify |
return
|
Boolean |
Successful value modification |
Sets the specific properties of the current row.
name |
type |
description |
attrName
|
String |
The attribute name to assign |
attrValue
|
String |
The attribute value to assign |
It takes data in the format {columnName: value} and makes full changes to the data in the current row.
name |
type |
description |
rowData
|
RowConfigInfo |
Format of row data to be modified {columnName: value, ...}.
{[columnName: string]: string | number} |
Changes the state value of the current row.
name |
type |
description |
state
|
RowState |
Values to change
State type:
CPR.Data.tabledata.rowstate.UNCHANGED: Unchanged state.
CPR.Data.tabledata.rowstate.Inserted: A new row added.
CPR.Data.tabledata.rowstate.updated: The row is modified.
CPR.Data.tabledata.rowstate.deleted: The row is deleted.
CPR.Data.tabledata.rowstate.Insertdeleted: The row has been added and deleted. |
Modify the data corresponding to the input columnName.
name |
type |
description |
columnName
|
String |
The columnName of the column to modify |
value
|
Object |
|
return
|
Boolean |
Successful value modification |