Class idx.form.Link


Extends dijit._TemplatedMixin, dijit._Widget.
Simple link for application to handle as a widget. Optional attributes are provided to control disabled and selected states.
Defined in: <idx\form\Link.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Field Summary

Field Attributes Field Name and Description
 
alt 
Alternative text.
 
Base CSS class.
 
Stops the click event propagation.
 
Specifies the disabled state.
 
href 
URL for the link.
 
Derived CSS class.
 
label 
Label string.
 
Specifies the selected state.
 
Tab index.
 
target 
Target for the link.

Method Summary

Method Attributes Method Name and Description
 
Handles focus.
 
onClick(event)
Callback called when the link is clicked.

Constructor Detail

idx.form.Link()

Field Detail

{String} alt

Alternative text.
Default Value:
""

{String} baseClass

Base CSS class.
Default Value:
"idxLink"

{Boolean} bubbleClickEvent

Stops the click event propagation. In cases where a click listener is added to a parent and not to the Link directly you need the event to bubble. For instance, a Link rendered for each row in a grid, you may want to avoid listeners on each and every link and just have a single listener on the grid.
Default Value:
false, for backwards compatibility

{Boolean} disabled

Specifies the disabled state.
Default Value:
false

{String} href

URL for the link.
Default Value:
""

{String} idxBaseClass

Derived CSS class.
Default Value:
"idxLinkDerived"

{String} label

Label string.
Default Value:
""

{Boolean} selected

Specifies the selected state.
Default Value:
false

{Number} tabIndex

Tab index.
Default Value:
0

{String} target

Target for the link.
Default Value:
""

Method Detail

focus()

Handles focus.

onClick(event)

Callback called when the link is clicked.
Parameters:
{Event} event