CKEDITOR.dialog.definition.hbox
Horizontal layout box for dialog UI elements, auto-expends to available width of container.
This class is not really part of the API. It just illustrates the properties that developers can use to define and create horizontal layouts.
Once the dialog is opened, the created element becomes a CKEDITOR.ui.dialog.hbox object and can be accessed with CKEDITOR.dialog.getContentElement.
// There is no constructor for this class, the user just has to define an
// object with the appropriate properties.
// Example:
{
type: 'hbox',
widths: [ '25%', '25%', '50%' ],
children: [
{
type: 'text',
id: 'id1',
width: '40px',
},
{
type: 'text',
id: 'id2',
width: '40px',
},
{
type: 'text',
id: 'id3'
}
]
}
Filtering
Properties
-
Horizontal alignment (in the container) of the UI element.
children : ArrayCKEDITOR.dialog.definition.hbox#childrenArray of CKEDITOR.ui.dialog.uiElement objects inside this container.
className : StringCKEDITOR.dialog.definition.hbox#classNameCSS class names to append to the UI element.
commit : FunctionCKEDITOR.dialog.definition.hbox#commitFunction to execute whenever the UI element's parent dialog's CKEDITOR.dialog.commitContent method is executed. It usually takes care of the respective UI element as a standalone element.
height : NumberCKEDITOR.dialog.definition.hbox#height(Optional) The height of the layout.
id : StringCKEDITOR.dialog.definition.hbox#idThe ID of the UI element.
onHide : FunctionCKEDITOR.dialog.definition.hbox#onHideFunction to execute whenever the UI element's parent dialog is closed.
onLoad : FunctionCKEDITOR.dialog.definition.hbox#onLoadFunction to execute the first time the UI element is displayed.
onShow : FunctionCKEDITOR.dialog.definition.hbox#onShowFunction to execute whenever the UI element's parent dialog is displayed.
padding : NumberCKEDITOR.dialog.definition.hbox#padding(Optional) The padding width inside child cells. Example: 0, 1.
requiredContent : String | Object | styleCKEDITOR.dialog.definition.hbox#requiredContentThe content that needs to be allowed to enable this UI element. All formats accepted by CKEDITOR.filter.check may be used.
When all UI elements in a tab are disabled, this tab will be disabled automatically.
setup : FunctionCKEDITOR.dialog.definition.hbox#setupFunction to execute whenever the UI element's parent dialog's CKEDITOR.dialog.setupContent method is executed. It usually takes care of the respective UI element as a standalone element.
style : StringCKEDITOR.dialog.definition.hbox#styleInline CSS classes to append to the UI element.
styles : StringCKEDITOR.dialog.definition.hbox#stylesThe CSS styles to apply to this element.
title : StringCKEDITOR.dialog.definition.hbox#titleThe popup label of the UI element.
type : StringCKEDITOR.dialog.definition.hbox#typeThe type of the UI element. Required.
widths : ArrayCKEDITOR.dialog.definition.hbox#widths(Optional) The widths of child cells.