ia.Text Class
Creates a text widget.
Constructor
ia.Text
-
id
-
text
Parameters:
-
id
StringThe id for the widget.
-
text
StringThe text for the widget.
Item Index
Methods
Methods
addCssClass
-
cssClass
Adds a css class to the widget.
Parameters:
-
cssClass
StringThe class to add eg. "ia-title-text".
height
-
value
Get/Set the height.
Parameters:
-
value
NumberThe 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
FunctionCan be a javascript function or a src containing a link or a function such as "javascript:iaToggle(dataExplorer)".
-
target
StringThe 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
NumberThe x position.
-
y
NumberThe y position.
-
width
NumberThe width
-
height
NumberThe height.
-
xAnchor
StringThe anchor x - 'left' or 'right'.
-
yAnchor
StringThe anchor y - 'top' or 'bottom'.
setPosition
-
x
-
y
-
xAnchor
-
yAnchor
Sets the position.
Parameters:
-
x
NumberThe x position.
-
y
NumberThe y position.
-
xAnchor
StringThe anchor x - 'left' or 'right'.
-
yAnchor
StringThe anchor y - 'top' or 'bottom'.
setSize
-
width
-
height
Sets the dimensions.
Parameters:
-
width
ObjectThe width.
-
height
ObjectThe height.
show
()
Shows the widget.
text
-
text
Sets the text.
Parameters:
-
text
StringThe text.
toggle
()
Toggles the visibility.
tooltip
-
tip
Sets the tooltip.
Parameters:
-
tip
StringThe tooltip text.
updateWidget
-
c
Updates the widget configuration.
Parameters:
-
c
ia.WidgetConfigThe widget config.
visible
-
vis
Sets or gets the visibility.
Parameters:
-
vis
BooleanThe visibility.
width
-
value
Get/Set the width.
Parameters:
-
value
NumberThe value (% or px for images).
x
-
value
Get/Set the x location.
Parameters:
-
value
NumberThe value (%).
xAnchor
-
value
Get/Set the anchor x.
Parameters:
-
value
NumberThe value
y
-
value
Get/Set the y location.
Parameters:
-
value
NumberThe value (%).
yAnchor
-
value
Get/Set the anchor x.
Parameters:
-
value
NumberThe value
zIndex
-
value
Get/Set the z index.
Parameters:
-
value
NumberThe 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