Module: alfresco/renderers/EditTag

alfresco/renderers/EditTag

This is the default tag used by the Tags renderer and is used to represent a previously added tag that can be removed by either giving the tag focus and clicking "SPACE" or "ENTER" or by clicking the "X" icon.
Author:
  • Dave Draper
License:
Source:

Members

cssRequirements :object[]

An array of the CSS files to use with this widget.
Type:
  • object[]
Default Value:
  • [{cssFile:"./css/EditTag.css"}]
Source:

tagName :string

The display name for the tag.
Type:
  • string
Default Value:
  • null
Source:

tagValue :string

The value of the tag (typically this will be a nodeRef)
Type:
  • string
Default Value:
  • null
Source:

Methods

_onBlur()

Removes the "highlight" CSS class.
Source:

_onFocus()

Adds the "highlight" CSS class.
Source:

createWidgetDom()

Overrides the inherited function to construct the DOM for the widget using native browser capabilities.
Since:
  • 1.0.101
Source:

onRemoveTag(evt)

This handler is called whenever the user clicks the delete image (or hits space or enter whenever it has focus). Rather than publishing on a topic, this function emits a custom event that is expected to be handled by a Tags widget (or a widget that extends it).
Parameters:
Name Type Description
evt object The click event
Source:

postCreate()

Determines whether or not the property should only be displayed when the item is hovered over.
Source:

postMixInProperties()

Set up the attributes to be used when rendering the template.
Source: