Show:

ia.MenuButton Class

Extends ia.Button
Module: ia

Simply extends a button to add a down arrow.

Constructor

ia.MenuButton

(
  • id
  • text
)

Parameters:

  • id String

    The id for the widget.

  • text String

    The text for the widget.

Methods

addCssClass

(
  • cssClass
)

Adds a css class to the widget.

Parameters:

  • cssClass String

    The class to add eg. "ia-title-text".

height

(
  • value
)

Get/Set the height.

Parameters:

  • value Number

    The value (% or px for images).

hide

()

Hides the widget.

maximize

()

Maximizes the component.

onclick

(
  • fnc
  • target
)

Set the function to call when the widget is clicked.

Parameters:

  • fnc Function

    Can be a javascript function or a src containing a link or a function such as "javascript:iaToggle(dataExplorer)".

  • target String

    The url target - used in conjunction with the onclick event. "blank" for a new window or tab, "self" for the current page, top for the topmost frame container, or "parent" for the parent of the current frame container. Default is "blank".

restore

()

Restores to the current x, y, width, height.

setDimensions

(
  • x
  • y
  • width
  • height
  • xAnchor
  • yAnchor
)

Sets the dimensions.

Parameters:

  • x Number

    The x position.

  • y Number

    The y position.

  • width Number

    The width

  • height Number

    The height.

  • xAnchor String

    The anchor x - 'left' or 'right'.

  • yAnchor String

    The anchor y - 'top' or 'bottom'.

setPosition

(
  • x
  • y
  • xAnchor
  • yAnchor
)

Sets the position.

Parameters:

  • x Number

    The x position.

  • y Number

    The y position.

  • xAnchor String

    The anchor x - 'left' or 'right'.

  • yAnchor String

    The anchor y - 'top' or 'bottom'.

setSize

(
  • width
  • height
)

Sets the dimensions.

Parameters:

  • width Object

    The width.

  • height Object

    The height.

show

()

Shows the widget.

text

(
  • text
)

Sets the text.

Parameters:

  • text String

    The text.

toggle

()

Toggles the visibility.

tooltip

(
  • tip
)

Sets the tooltip.

Parameters:

  • tip String

    The tooltip text.

update

(
  • c
)

Updates the button configuration.

Parameters:

updateWidget

(
  • c
)

Updates the widget configuration.

Parameters:

visible

(
  • vis
)

Sets or gets the visibility.

Parameters:

  • vis Boolean

    The visibility.

width

(
  • value
)

Get/Set the width.

Parameters:

  • value Number

    The value (% or px for images).

x

(
  • value
)

Get/Set the x location.

Parameters:

  • value Number

    The value (%).

xAnchor

(
  • value
)

Get/Set the anchor x.

Parameters:

  • value Number

    The value

y

(
  • value
)

Get/Set the y location.

Parameters:

  • value Number

    The value (%).

yAnchor

(
  • value
)

Get/Set the anchor x.

Parameters:

  • value Number

    The value

zIndex

(
  • value
)

Get/Set the z index.

Parameters:

  • value Number

    The value

Properties

container

JQUERY Element

The container that holds the object.

id

String

The id.

Default: ""

name

String

The name.

Default: ""

rescale

Boolean

Resale.

Default: true