Class: TextButton

ol.control. TextButton

A simple push button control drawn as text


new TextButton( [options])

Parameters:
Name Type Argument Description
options Object <optional>

Control options.

Properties
Name Type Description
className String

class of the control

title String

title of the control

html String

html to insert in the control

handleClick function

callback when control is clicked (or use change:active event)

Extends

Methods


getButtonElement()

Get the button element

Inherited From:
Overrides:
Returns:
Type
Element

getDisable()

Test if the control is disabled.

Inherited From:
Overrides:
Returns:
Type
bool

setDisable(b)

Disable the control button.

Parameters:
Name Type Description
b bool

disable (or enable) the control, default false (enable)

Inherited From:
Overrides:

setHtml(html)

Set the button html

Parameters:
Name Type Description
html string
Inherited From:
Overrides:

setTitle(title)

Set the button title

Parameters:
Name Type Description
title string
Inherited From:
Overrides:

setVisible(b)

Set the control visibility

Parameters:
Name Type Description
b boolean
Inherited From:
Overrides: