Constructor
new CTable()
Parameters:
Name |
Type |
Description |
this.props.server |
Object
|
JRPC object. |
this.props.allow_guest |
boolean
|
Allow getting data without login. |
- Source:
Fires:
Methods
askUser(question) → {Promise}
Callback for ask a question to user
Parameters:
Name |
Type |
Description |
question |
string
|
Question text |
- Source:
Returns:
Promise which resolve if user select Yes and reject in No
-
Type
-
Promise
onDownloadFile(row, column, index)
Callback for downloading file
Parameters:
Name |
Type |
Description |
row |
Object
|
Current row |
column |
Object
|
Current column |
index |
Integer
|
Index of downloading file in column |
- Source:
onEditorChanges(colname, is_modified, value, valid)
Callback for very changes in editor
Parameters:
Name |
Type |
Description |
colname |
string
|
Column name |
is_modified |
bool
|
Is modified |
value |
*
|
Column value |
valid |
bool
|
Is vaid |
- Source:
onUploadFile(row, column, index, files) → {Promise}
Callback for uploading file
Parameters:
Name |
Type |
Description |
row |
Object
|
Current row |
column |
Object
|
Current column |
index |
Integer
|
Index of uploading file. -1 for appending |
files |
Object
|
File-input control files field |
- Source:
Returns:
Promise which resolve when file succsessfuly uploaded. Argument is file description string
-
Type
-
Promise
showError(e)
Show error for user
Parameters:
Name |
Type |
Description |
e |
Object
|
Error object
Properties
Name |
Type |
Description |
code |
Integer
|
Error code |
message |
String
|
Error text message |
|
- Source:
Type Definitions
EditorChange
Type:
Properties:
Name |
Type |
Description |
is_modified |
bool
|
|
value |
*
|
|
valid |
bool
|
|
- Source:
Events
cteditorchanged
Properties:
- Source:
Listeners of This Event: