Class Alfresco.DiscussionsTopic
Topic component.
Shows and allows to edit a topic.
Shows and allows to edit a topic.
Defined in: topic.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.DiscussionsTopic(htmlId)
Topic constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Tells whether an action is currently ongoing.
|
|
|
Object container for storing module instances.
|
|
|
Object container for initialization options
|
|
|
Object literal used to generate unique tag ids
|
|
|
Holds the data displayed in this component.
|
|
|
Object container for storing YUI widget instances.
|
| Method Attributes | Method Name and Description |
|---|---|
|
onAddReply(htmlId, ownerId, param)
Handler for add reply action link
|
|
|
Fired by YUILoaderHelper when required component script files have
|
|
|
Handler for delete topic action link
|
|
|
onEditFormCancelButtonClick(type, args)
Edit form cancel button click handler
|
|
|
onEditFormLoaded(response)
Event callback when dialog template has been loaded
|
|
|
onEditFormSubmitFailure(response, object)
Edit form submit failure handler
|
|
|
onEditFormSubmitSuccess(response, object)
Edit form submit success handler
|
|
|
Handler for edit topic action link
|
|
|
onReady()
Fired by YUI when parent element is available for scripting.
|
|
|
onTagSelected(tagId, target)
Tag selected handler
|
|
|
onTopicElementMouseEntered(layer, args)
Called when the mouse enters into the topic div
|
|
|
onTopicElementMouseExited(layer, args)
Called whenever the mouse exits the topic div
|
|
|
renderTopic(data)
Renders the topic.
|
|
|
renderUI()
Renders the UI with the data available in the component.
|
|
|
setMessages(obj)
Set multiple initialization options at once.
|
|
|
setOptions(obj)
Set multiple initialization options at once.
|
Constructor Detail
Alfresco.DiscussionsTopic(htmlId)
Topic constructor.
- Parameters:
- {String} htmlId
- The HTML id of the parent element
- Returns:
- {Alfresco.TopicView} The new Topic instance
Field Detail
{boolean}
busy
Tells whether an action is currently ongoing.
- See:
- _setBusy/_releaseBusy
{object}
modules
Object container for storing module instances.
{object}
options
Object container for initialization options
{object}
tagId
Object literal used to generate unique tag ids
topicData
Holds the data displayed in this component.
{object}
widgets
Object container for storing YUI widget instances.
Method Detail
onAddReply(htmlId, ownerId, param)
Handler for add reply action link
- Parameters:
- htmlId
- ownerId
- param
onComponentsLoaded()
Fired by YUILoaderHelper when required component script files have
been loaded into the browser.
been loaded into the browser.
onDeleteTopic()
Handler for delete topic action link
onEditFormCancelButtonClick(type, args)
Edit form cancel button click handler
- Parameters:
- type
- args
onEditFormLoaded(response)
Event callback when dialog template has been loaded
- Parameters:
- {object} response
- Server response from load template XHR request
onEditFormSubmitFailure(response, object)
Edit form submit failure handler
- Parameters:
- response
- object
onEditFormSubmitSuccess(response, object)
Edit form submit success handler
- Parameters:
- response
- object
onEditTopic()
Handler for edit topic action link
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.
onTagSelected(tagId, target)
Tag selected handler
- Parameters:
- {string} tagId
- Tag name.
- {HTMLElement} target
- Target element clicked.
onTopicElementMouseEntered(layer, args)
Called when the mouse enters into the topic div
- Parameters:
- layer
- args
onTopicElementMouseExited(layer, args)
Called whenever the mouse exits the topic div
- Parameters:
- layer
- args
{string}
renderTopic(data)
Renders the topic.
- Parameters:
- {object} data
- the data object containing the topic data
- Returns:
- {string} html representing the data
renderUI()
Renders the UI with the data available in the component.
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