jQuery.telligent.evolution.editableGroup
The editable group module enables widgets to be validated and edited in groups. This is how the editable user profile is implemented.
Note that this API works with the $core_editableGroup
scripted widget extension that exposes methods to simplify registration, retrieving the save script, retrieving the validation script, loading related widgets in edit mode and view mode.
Methods
register
Registers a widget or script to be edited within a group identified by groupName.
$.telligent.evolution.editableGroup.register(groupName, options)
options:
save
: a function that, when called, should perform the grouped save associated to this registration. The function can return true or false to identify whether the save was successful or not return a boolean but use the passed in function parameters success and failure to identify success and failure asynchronously.validate
: a function that, when called, should perform validation associated to this registration. The function can return true or false to identify whether the save was successful or not return a Boolean but use the passed in function parameters success and failure to identify success and failure asynchronously.
save
Initiates the saving functionality related to the specified groupName.
$.telligent.evolution.editableGroup.save(groupName, options)
options:
success
: a function to execute when all registered save behavior has completed successfully.error
: a function to execute when any of the registered save behavior identifies an error.
validate
Initiates the validation functionality related to the specified groupName.
$.telligent.evolution.editableGroup.validate(groupName, options)
options:
success
: a function to execute when all registered validations have been successful.error
: a function to execute when any of the registered validations have failed.