Class Alfresco.TagComponent
Extends Alfresco.component.Base
Alfresco.TagComponent
Defined in: tags.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.TagComponent(htmlId)
TagComponent constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Object container for initialization options
|
- Fields borrowed from class Alfresco.component.Base:
- modules, services, widgets
| Method Attributes | Method Name and Description |
|---|---|
|
onReady()
Fired by YUI when parent element is available for scripting.
|
|
|
onTagRefresh(e)
Handler for the "tagRefresh" event
|
|
|
onTagSelected(layer, args)
Event handler for tagSelected event
|
|
|
onTagsLoaded(e)
Event handler that gets called when the tag data
|
- Methods borrowed from class Alfresco.component.Base:
- attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.TagComponent(htmlId)
TagComponent constructor.
- Parameters:
- {String} htmlId
- The HTML id of the parent element
- Returns:
- {Alfresco.TagComponent} The new TagComponent instance
Field Detail
{object}
options
Object container for initialization options
Method Detail
onReady()
Fired by YUI when parent element is available for scripting.
Registers event handler on "tagRefresh" event. If a component wants to refresh
the tags component, they need to fire this event.
Registers event handler on "tagRefresh" event. If a component wants to refresh
the tags component, they need to fire this event.
onTagRefresh(e)
Handler for the "tagRefresh" event
Issues a request to the repo to retrieve the latest tag data.
Issues a request to the repo to retrieve the latest tag data.
- Parameters:
- {object} e
- DomEvent
onTagSelected(layer, args)
Event handler for tagSelected event
- Parameters:
- layer
- args
onTagsLoaded(e)
Event handler that gets called when the tag data
loads successfully.
loads successfully.
- Parameters:
- {object} e
- DomEvent