Class Alfresco.BlogPostView
BlogPostView component.
Component to view a blog post
Component to view a blog post
Defined in: postview.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.BlogPostView(htmlId)
BlogPostView constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Stores the data displayed by this component
|
|
|
Tells whether an action is currently ongoing.
|
|
|
Object container for initialization options
|
|
|
True if publishing actions should be displayed
|
|
|
Object literal used to generate unique tag ids
|
|
|
Object container for storing YUI widget instances.
|
| Method Attributes | Method Name and Description |
|---|---|
|
loadBlogPostDataSuccess(response)
Success handler for a blog post request. Updates the UI using the blog post data
|
|
|
Fired by YUILoaderHelper when required component script files have
|
|
|
onDeleteBlogPost(postId)
Blog post deletion implementation
|
|
|
onEditBlogPost(postId)
Loads the edit post form and displays it instead of the content
|
|
|
onPostElementMouseEntered(layer, args)
Called when the mouse enters into a list item.
|
|
|
onPostElementMouseExited(layer, args)
Called whenever the mouse exits a list item.
|
|
|
onPublishExternal(postId)
Publishing of a blog post
|
|
|
onReady()
Fired by YUI when parent element is available for scripting.
|
|
|
onTagSelected(tagId, target)
Tag selected handler.
|
|
|
onUnpublishExternal(postId)
Unpublishing of an external published blog post implementation
|
|
|
onUpdateExternal(postId)
Updating of an external published blog post implementation
|
|
|
renderBlogPost(data)
Renders the blog post given a blog post data object returned by the server.
|
|
|
Sends out a setCommentedNode bubble event.
|
|
|
setMessages(obj)
Set messages for this component.
|
|
|
setOptions(obj)
Set multiple initialization options at once.
|
Constructor Detail
Alfresco.BlogPostView(htmlId)
BlogPostView constructor.
- Parameters:
- {String} htmlId
- The HTML id of the parent element
- Returns:
- {Alfresco.BlogPostView} The new Post instance
Field Detail
blogPostData
Stores the data displayed by this component
{boolean}
busy
Tells whether an action is currently ongoing.
- See:
- setBusy/releaseBusy
{object}
options
Object container for initialization options
{boolean}
showPublishingActions
True if publishing actions should be displayed
{object}
tagId
Object literal used to generate unique tag ids
{object}
widgets
Object container for storing YUI widget instances.
Method Detail
loadBlogPostDataSuccess(response)
Success handler for a blog post request. Updates the UI using the blog post data
provided in the response object.
provided in the response object.
- Parameters:
- {object} response
- the ajax request response
onComponentsLoaded()
Fired by YUILoaderHelper when required component script files have
been loaded into the browser.
been loaded into the browser.
onDeleteBlogPost(postId)
Blog post deletion implementation
- Parameters:
- {string} postId
- the id of the blog post to delete
onEditBlogPost(postId)
Loads the edit post form and displays it instead of the content
The div class should have the same name as the above function (onEditNode)
The div class should have the same name as the above function (onEditNode)
- Parameters:
- postId
onPostElementMouseEntered(layer, args)
Called when the mouse enters into a list item.
- Parameters:
- layer
- args
onPostElementMouseExited(layer, args)
Called whenever the mouse exits a list item.
- Parameters:
- layer
- args
onPublishExternal(postId)
Publishing of a blog post
- Parameters:
- {string} postId
- the id of the blog post to publish
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.
onUnpublishExternal(postId)
Unpublishing of an external published blog post implementation
- Parameters:
- {string} postId
- the id of the blog post to update
onUpdateExternal(postId)
Updating of an external published blog post implementation
- Parameters:
- {string} postId
- the id of the blog post to update
renderBlogPost(data)
Renders the blog post given a blog post data object returned by the server.
- Parameters:
- data
sendCommentedNodeEvent()
Sends out a setCommentedNode bubble event.
{Alfresco.BlogPostView}
setMessages(obj)
Set messages for this component.
- Parameters:
- {object} obj
- Object literal specifying a set of messages
- Returns:
- {Alfresco.BlogPostView} returns 'this' for method chaining
setOptions(obj)
Set multiple initialization options at once.
- Parameters:
- {object} obj
- Object literal specifying a set of options