Class nextdb.html.InsertForm
Object
|
+--nextdb.html.Form
|
+--nextdb.html.InsertForm
- class
nextdb.html.InsertForm
- extends nextdb.html.Form
Defined in api.docs.js
|
Method Summary |
Object
|
captchaColors(style)
set the captcha colors to blend the image into the page correctly, this is the format {bg:"#FFFFFF",fg:"#333333"}
|
Object
|
insertCallback(<Function> callback)
optional insert callback, the callBack signature is callack(rowId,error) the rowId is the encrypted id for the new
row inserted, error is either an instance of nextdb.Error in the case of an error or undefined if everything succeeded.
|
void
|
render(<HTMLElement> div)
renders the form into the div
|
Object
|
setRelationship(<Relationship> relationship)
Set the rowId and relationship name to automatically link this inserted row to another
row in a different table according to the named relationship.
|
| Methods inherited from class nextdb.html.Form |
interceptor, fail, columnAliases, cancelCallback, afterRenderCallback, layout, whileLoading, timeoutMessage, expandFields, omitFields, orderFields, confirmFields, setMessageId, message, obscureFields, options, defaultValues, validation, destroy
|
nextdb.html.InsertForm
nextdb.html.InsertForm(conn,tableName)
captchaColors
Object captchaColors(style)
set the captcha colors to blend the image into the page correctly, this is the format {bg:"#FFFFFF",fg:"#333333"}
Parameters:
format - {bg:"#FFFFFF",fg:"#333333"}
insertCallback
Object insertCallback(<Function> callback)
optional insert callback, the callBack signature is callack(rowId,error) the rowId is the encrypted id for the new
row inserted, error is either an instance of nextdb.Error in the case of an error or undefined if everything succeeded.
Parameters:
callback - takes two parameters, rows and error.
render
void render(<HTMLElement> div)
renders the form into the div
setRelationship
Object setRelationship(<Relationship> relationship)
Set the rowId and relationship name to automatically link this inserted row to another
row in a different table according to the named relationship.
Parameters:
relationship - -optional used to relate the new row to existing row in another table.
Documentation generated by
JSDoc on Fri Apr 1 10:54:23 2011