Index

Classes

Class

Methods

Class Banana.Controls.Link


Extends Banana.Controls.DataControl.

Methods borrowed from class Banana.Controls.DataControl:
dataSetBind, getData, setData, unDataSetBind
Methods borrowed from class Banana.UiControl:
addControl, addCss, addCssClass, getAttribute, getAttributes, getClientId, getCss, getCssClass, getDimensions, getHtml, getHtmlAttributes, getState, getStyle, getStyleProperty, hasCssClass, registerEvents, removeAttribute, removeCssClass, removeState, setAttribute, setClientId, setCss, setEnabled, setState, setStyle, setVisible, switchCssClass, triggerEvent, unregisterEvents
Methods borrowed from class Banana.Control:
applyToChildren, bind, clear, createComponents, findControl, generateUniqueId, getControls, getDomEventTypes, getFirstUiControl, getId, getPage, getParent, getProxy, hasBind, invalidateDisplay, onPreInvalidateContents, onWindowResize, remove, render, setId, setPage, setParent, unbind, unload

Defined in: Link.js.

Class Detail
Banana.Controls.Link()

Creates a link control. The equivalent of href Use setHref to define a link and setText for the visible text. By default the link control does not have a target.

example use: var link = new Banana.Controls.Link(); link.setHref("http://foo.com"); link.setText("a link"); link.bind('click',function(){});

Method Detail
{String} getTagName()
Returns:
{String}
setHref(href)

Sets the the target link

Parameters:
{String} href
setTarget(target)

Sets the target we want to direct the link to. use "_blank" to direct to a new window.

Parameters:
{String} target
setText(text)

Sets the text we want to display

Parameters:
{String} text
updateDisplay()

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 05 2012 22:01:54 GMT+0100 (CET)