Class Alfresco.CreateTopic
CreateTopic component.
Logic for a topic creation form.
Logic for a topic creation form.
Defined in: createtopic.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.CreateTopic(htmlId)
CreateTopic constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Stores the data of the currently edited blog post
|
|
|
Object container for storing module instances.
|
|
|
Object container for initialization options
|
|
|
Object container for storing YUI widget instances.
|
| Method Attributes | Method Name and Description |
|---|---|
|
Fired by YUILoaderHelper when required component script files have
|
|
|
onFormCancelButtonClick(type, args)
Form cancel button click handler
|
|
|
Reenables the inputs which got disabled as part of a comment submit
|
|
|
onFormSubmitSuccess(response, object)
Form submit success handler
|
|
|
onReady()
Fired by YUI when parent element is available for scripting.
|
|
|
setMessages(obj)
Set multiple initialization options at once.
|
|
|
setOptions(obj)
Set multiple initialization options at once.
|
Constructor Detail
Alfresco.CreateTopic(htmlId)
CreateTopic constructor.
- Parameters:
- {String} htmlId
- The HTML id of the parent element
- Returns:
- {Alfresco.CreateTopic} The new Topic instance
Field Detail
{object}
discussionsTopicData
Stores the data of the currently edited blog post
{object}
modules
Object container for storing module instances.
{object}
options
Object container for initialization options
{object}
widgets
Object container for storing YUI widget instances.
Method Detail
onComponentsLoaded()
Fired by YUILoaderHelper when required component script files have
been loaded into the browser.
been loaded into the browser.
onFormCancelButtonClick(type, args)
Form cancel button click handler
- Parameters:
- type
- args
onFormSubmitFailure()
Reenables the inputs which got disabled as part of a comment submit
onFormSubmitSuccess(response, object)
Form submit success handler
- Parameters:
- response
- object
onReady()
Fired by YUI when parent element is available for scripting.
Component initialisation, including instantiation of YUI widgets and event listener binding.
Component initialisation, including instantiation of YUI widgets and event listener binding.
setMessages(obj)
Set multiple initialization options at once.
- Parameters:
- {object} obj
- Object literal specifying a set of options
setOptions(obj)
Set multiple initialization options at once.
- Parameters:
- {object} obj
- Object literal specifying a set of options