ia.Panel Class
Creates a panel widget.
Constructor
ia.Panel
-
id -
title
Parameters:
-
idStringThe id for the widget.
-
titleStringThe widget title.
Item Index
Methods
- _build
- _size
- addCssClass
- append
- appendToFooter
- closeable
- closeFunction
- exportable
- exportFunction
- hasSettings
- height
- hide
- maximize
- onclick
- popup
- resize
- resizeable
- resizeFunction
- restore
- setDimensions
- setPosition
- setSize
- settingsFunction
- show
- text
- title
- toggle
- tooltip
- update
- updateWidget
- visible
- width
- x
- xAnchor
- y
- yAnchor
- zIndex
Methods
_build
()
private
Builds the panel.
_size
()
private
Resizes the panel elements when the panel size or header text have changed. This is the only way at the moment to make sure the content doesnt overflow its container.
addCssClass
-
cssClass
Adds a css class to the widget.
Parameters:
-
cssClassStringThe class to add eg. "ia-title-text".
append
-
obj
Appends an element to the panel content area.
Parameters:
-
objJQUERY ElementThe jquery object.
closeable
-
isCloseable
Sets or gets if its closeable.
Parameters:
-
isCloseableBooleantrue/false.
exportable
-
isExportable
Sets or gets if its exportable.
Parameters:
-
isExportableBooleantrue/false.
exportFunction
()
The export function.
hasSettings
-
hasSettings
Sets or gets if it has settings.
Parameters:
-
hasSettingsBooleantrue/false.
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".
popup
-
isPopup
Sets or gets if its a popup - closes on a click outside the panel.
Parameters:
-
isPopupBooleantrue/false.
resize
()
Resizes the panel.
resizeable
-
isResizeable
Sets or gets if its resizeable.
Parameters:
-
isResizeableBooleantrue/false.
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.
settingsFunction
()
The settings function.
show
()
Shows the widget.
text
-
text
Sets the content text.
Parameters:
-
textStringThe text.
title
-
text
Sets the title text.
Parameters:
-
textStringThe text.
toggle
()
Toggles the visibility.
tooltip
-
tip
Sets the tooltip.
Parameters:
-
tipStringThe tooltip text.
update
-
c
Updates the component configuration.
Parameters:
-
cia.ComponentConfigThe component config.
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.
content
JQUERY Element
The panel content container.
contentText
JQUERY Element
Allows text to be placed in the panel content.
header
JQUERY Element
The panel header.
id
String
The id.
Default: ""
name
String
The name.
Default: ""
rescale
Boolean
Resale.
Default: true