thyLabelPanel

This is a Panel that has a Label.

CSS Classes

  • .thyLabelPanel_label
  • .thyLabelPanel_contents
Summary
This is a Panel that has a Label.
Initialization Method
Populates the Panel and optionally its Label
Returns the sweepOut of the contents
Removes all data from contents
Removes all transient data from contents panel
Sets this Panel Label text
Returns the Panel label text
Sets the HTML of the contents.
Overwritten method that sets the name of main, label and contents and refreshes CSS Classes
Overwritten method that sets CSS classes of main, label and contents panels
Overloaded method that add childs to Contents Panel
Overloaded method that removes childs from Contents panel
Adds the specified CSS Class to base classes and reset CSS
Removes the specified CSS Class from main, label and contents and refreshes CSS
Insert ‘thyLabelPanel_disabled’ CSS class onto contents

initThyLabelPanel

p.initThyLabelPanel = function ()

Initialization Method

populate

p.populate = function (data)

Populates the Panel and optionally its Label

Parameter

dataThe contents of the panel or and array which have in its first element the Label and second the contents

sweepOut

p.sweepOut = function ()

Returns the sweepOut of the contents

cleanUp

p.cleanUp = function ()

Removes all data from contents

reset

p.reset = function ()

Removes all transient data from contents panel

setLabel

p.setLabel = function (label)

Sets this Panel Label text

Parameter

labelThe text label

getLabel

p.getLabel = function ()

Returns the Panel label text

setHTML

p.setHTML = function (html)

Sets the HTML of the contents.

Parameter

htmlThe HTML to be set inside Contents

setName

p.setName = function (name)

Overwritten method that sets the name of main, label and contents and refreshes CSS Classes

Parameter

nameThe new widget name

setCSSClass

p.setCSSClass = function (type)

Overwritten method that sets CSS classes of main, label and contents panels

addChild

p.addChild = function (child,
alias,
inlineID)

Overloaded method that add childs to Contents Panel

Parameter

childThe child object
alias?  (dynapi property)
inlineID?  (dynapi property)

removeChild

p.removeChild = function (child)

Overloaded method that removes childs from Contents panel

Parameter

childThe child to be removed or its index

Private Methods

_addCSSClass

p._addCSSClass = function (cssClass)

Adds the specified CSS Class to base classes and reset CSS

_removeCSSClass

p._removeCSSClass = function (cssClass)

Removes the specified CSS Class from main, label and contents and refreshes CSS

Parameter

cssClassThe CSS Class to be removed

_setDisabled

p._setDisabled = function ()

Insert ‘thyLabelPanel_disabled’ CSS class onto contents

p.initThyLabelPanel = function ()
Initialization Method
p.populate = function (data)
Populates the Panel and optionally its Label
p.sweepOut = function ()
Returns the sweepOut of the contents
p.cleanUp = function ()
Removes all data from contents
p.reset = function ()
Removes all transient data from contents panel
p.setLabel = function (label)
Sets this Panel Label text
p.getLabel = function ()
Returns the Panel label text
p.setHTML = function (html)
Sets the HTML of the contents.
p.setName = function (name)
Overwritten method that sets the name of main, label and contents and refreshes CSS Classes
p.setCSSClass = function (type)
Overwritten method that sets CSS classes of main, label and contents panels
p.addChild = function (child,
alias,
inlineID)
Overloaded method that add childs to Contents Panel
p.removeChild = function (child)
Overloaded method that removes childs from Contents panel
p._addCSSClass = function (cssClass)
Adds the specified CSS Class to base classes and reset CSS
p._removeCSSClass = function (cssClass)
Removes the specified CSS Class from main, label and contents and refreshes CSS
p._setDisabled = function ()
Insert ‘thyLabelPanel_disabled’ CSS class onto contents