Class Alfresco.BlogPostList
BlogPostList component.
Defined in: postlist.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.BlogPostList(htmlId)
BlogPostList constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Tells whether an action is currently ongoing.
|
|
|
Current filter to filter blog post list.
|
|
|
Object container for storing module instances.
|
|
|
Object container for initialization options
|
|
|
Offset of first record on page
|
|
|
True if publishing actions should be displayed
|
|
|
Object literal used to generate unique tag ids
|
|
|
Total number of posts in the current view (across all pages)
|
|
|
Object container for storing YUI widget instances.
|
| Method Attributes | Method Name and Description |
|---|---|
|
onBlogConfigChanged(layer, args)
On blog config changed h handler
|
|
|
onBlogPostListRefresh(layer, args)
BlogPostList Refresh Required event handler
|
|
|
onChangeFilter(layer, args)
BlogPostList Change filter event handler
|
|
|
Fired by YUILoaderHelper when required component script files have
|
|
|
onDeactivateAllControls(layer, args)
Deactivate All Controls event handler
|
|
|
onDeleteBlogPost(row)
Handler for the delete blog post action links
|
|
|
onEditBlogPost(row)
Handler for the edit blog post action links
|
|
|
Custom event handler to highlight row.
|
|
|
Custom event handler to unhighlight row.
|
|
|
onPublishExternal(row)
Handler for the publish external action links
|
|
|
onReady()
Fired by YUI when parent element is available for scripting.
|
|
|
onSimpleView(e, p_obj)
Action handler for the simple view toggle button
|
|
|
onTagSelected(layer, args)
Tag selected handler
|
|
|
onUnpublishExternal(row)
Handler for the unpublish external action links
|
|
|
onUpdateExternal(row)
Handler for the update external action links
|
|
|
onViewBlogPost(row)
Handler for the view blog post action links
|
|
|
setMessages(obj)
Set messages for this component.
|
|
|
setOptions(obj)
Set multiple initialization options at once.
|
|
|
Updates the list title considering the current active filter.
|
Constructor Detail
Alfresco.BlogPostList(htmlId)
BlogPostList constructor.
- Parameters:
- {String} htmlId
- The HTML id of the parent element
- Returns:
- {Alfresco.BlogPostList} The new BlogPostList instance
Field Detail
{boolean}
busy
Tells whether an action is currently ongoing.
- See:
- _setBusy/_releaseBusy
{object}
currentFilter
Current filter to filter blog post list.
{object}
modules
Object container for storing module instances.
{object}
options
Object container for initialization options
{int}
recordOffset
Offset of first record on page
- Default Value:
- 0
{boolean}
showPublishingActions
True if publishing actions should be displayed
- Default Value:
- false
{object}
tagId
Object literal used to generate unique tag ids
{int}
totalRecords
Total number of posts in the current view (across all pages)
- Default Value:
- 0
{object}
widgets
Object container for storing YUI widget instances.
Method Detail
onBlogConfigChanged(layer, args)
On blog config changed h handler
- Parameters:
- layer
- args
onBlogPostListRefresh(layer, args)
BlogPostList Refresh Required event handler
- Parameters:
- {object} layer
- Event fired (unused)
- {array} args
- Event parameters (unused)
onChangeFilter(layer, args)
BlogPostList Change filter event handler
- Parameters:
- {object} layer
- Event fired (unused)
- {array} args
- Event parameters (new filterId)
onComponentsLoaded()
Fired by YUILoaderHelper when required component script files have
been loaded into the browser.
been loaded into the browser.
onDeactivateAllControls(layer, args)
Deactivate All Controls event handler
- Parameters:
- {object} layer
- Event fired
- {array} args
- Event parameters (depends on event type)
onDeleteBlogPost(row)
Handler for the delete blog post action links
- Parameters:
- {object} row
- DataTable row representing post to be actioned
onEditBlogPost(row)
Handler for the edit blog post action links
- Parameters:
- {object} row
- DataTable row representing post to be actioned
onEventHighlightRow()
Custom event handler to highlight row.
- Parameters:
- oArgs.event
- {HTMLEvent} Event object.
- oArgs.target
- {HTMLElement} Target element.
onEventUnhighlightRow()
Custom event handler to unhighlight row.
- Parameters:
- oArgs.event
- {HTMLEvent} Event object.
- oArgs.target
- {HTMLElement} Target element.
onPublishExternal(row)
Handler for the publish external action links
- Parameters:
- {object} row
- DataTable row representing post to be actioned
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.
onSimpleView(e, p_obj)
Action handler for the simple view toggle button
- Parameters:
- e
- p_obj
onTagSelected(layer, args)
Tag selected handler
- Parameters:
- layer
- args
onUnpublishExternal(row)
Handler for the unpublish external action links
- Parameters:
- {object} row
- DataTable row representing post to be actioned
onUpdateExternal(row)
Handler for the update external action links
- Parameters:
- {object} row
- DataTable row representing post to be actioned
onViewBlogPost(row)
Handler for the view blog post action links
- Parameters:
- {object} row
- DataTable row representing post to be actioned
{Alfresco.DocumentList}
setMessages(obj)
Set messages for this component.
- Parameters:
- {object} obj
- Object literal specifying a set of messages
- Returns:
- {Alfresco.DocumentList} returns 'this' for method chaining
setOptions(obj)
Set multiple initialization options at once.
- Parameters:
- {object} obj
- Object literal specifying a set of options
updateListTitle()
Updates the list title considering the current active filter.