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