Code Index

Namespaces

Classes


Class CKFinder.ui.dialog.hbox


Extends CKFinder.ui.dialog.uiElement.

Class Summary
Constructor Attributes Constructor Name and Description
 
CKFinder.ui.dialog.hbox(dialog, childObjList, childHtmlList, htmlList, elementDefinition)
Horizontal layout box for dialog UI elements, auto-expends to available width of container.
Method Summary
Method Attributes Method Name and Description
 
getChild(indices)
Gets a child UI element inside this container.
Methods borrowed from class CKFinder.ui.dialog.uiElement:
disable, enable, focus, getDialog, getElement, getInputElement, getValue, isChanged, isEnabled, isVisible, selectParentTab, setValue
Class Detail
CKFinder.ui.dialog.hbox(dialog, childObjList, childHtmlList, htmlList, elementDefinition)
Since: 2.0
Horizontal layout box for dialog UI elements, auto-expends to available width of container.
Note: the whole CKFinder.ui.dialog namespace is not directly accessible (CKFinder.ui.dialog is undefined).
Instances of this class are created by CKFinder when dialog is created.
To add a horizontal box to a dialog, check CKFinder.dialog.definition.hbox.
Parameters:
{CKFinder.dialog} dialog
Parent dialog object.
{Array} childObjList
Array of CKFinder.ui.dialog.uiElement objects inside this container.
{Array} childHtmlList
Array of HTML code that correspond to the HTML output of all the objects in childObjList.
{Array} htmlList
Array of HTML code that this element will output to.
{CKFinder.dialog.uiElementDefinition} elementDefinition
The element definition. Accepted fields:
  • widths (Optional) The widths of child cells.
  • height (Optional) The height of the layout.
  • padding (Optional) The padding width inside child cells.
  • align (Optional) The alignment of the whole layout
Method Detail
{Array|CKFinder.ui.dialog.uiElement} getChild(indices)
Since: 2.0
Gets a child UI element inside this container.
var checkbox = hbox.getChild( [0,1] );
checkbox.setValue( true );
Parameters:
{Array|Number} indices
An array or a single number to indicate the child's position in the container's descendant tree. Omit to get all the children in an array.
Returns:
{Array|CKFinder.ui.dialog.uiElement} Array of all UI elements in the container if no argument given, or the specified UI element if indices is given.

Copyright © 2007-2015, CKSource - Frederico Knabben. All rights reserved.