Class xataface.RecordDialog
Defined in: RecordDialog.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
A dialog that opens a new record form or edit record form as an internal
jQuery dialog.
|
| Field Attributes | Field Name and Description |
|---|---|
|
The base URL of the RecordDialog folder.
|
|
|
The HTML element that is used to house this dialog.
|
|
|
The ID of the record to edit (if null then this will be a new record form).
|
|
|
The table of the record to edit or to add to.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
xataface.RecordDialog.Callback(o)
The callback function that is to be passed to a RecordDialog so that it can be
called on completion.
|
|
display()
Displays the record dialog.
|
|
| <static> |
xataface.RecordDialog.getURL()
Gets the URL to the form for this dialog.
|
Class Detail
xataface.RecordDialog(o)
A dialog that opens a new record form or edit record form as an internal
jQuery dialog.
- Parameters:
- {Object} o
- {String} o.recordid
- The Record ID of the record to edit.
- {String} o.table
- The name of the table to add new records to.
- {xataface.RecordDialog.Callback} o.callback
- The callback method to be called when saving is complete.
Field Detail
{String}
baseURL
The base URL of the RecordDialog folder. Default is DATAFACE_URL+'/js/RecordDialog'
{HTMLElement}
el
The HTML element that is used to house this dialog.
{String}
recordid
The ID of the record to edit (if null then this will be a new record form).
{String}
table
The table of the record to edit or to add to.
Method Detail
<static>
xataface.RecordDialog.Callback(o)
The callback function that is to be passed to a RecordDialog so that it can be
called on completion.
- Parameters:
- {Object} o
- {String} o.__title__
- The record title of the record that was just saved.
- {String} o.__id__
- The id of the record that was just saved.
- {String} o.$$key$$
- Each field of the record is included in this data as key value pairs.
display()
Displays the record dialog.
<static>
{String}
xataface.RecordDialog.getURL()
Gets the URL to the form for this dialog.
- Returns:
- {String} The url for the form of this dialog.