Code Index

Namespaces

Classes


Class CKFinder.ui.dialog.file


Extends CKFinder.ui.dialog.labeledElement.

Class Summary
Constructor Attributes Constructor Name and Description
 
CKFinder.ui.dialog.file(dialog, elementDefinition, htmlList)
A file upload input.
Method Summary
Method Attributes Method Name and Description
 
getAction(action)
Get the action assigned to the form.
 
Gets the <input> element of this file input.
 
 
Redraws the file input and resets the file path in the file input.
 
Uploads the file in the file input.
Methods borrowed from class CKFinder.ui.dialog.labeledElement:
getLabel, setLabel
Methods borrowed from class CKFinder.ui.dialog.uiElement:
disable, enable, focus, getDialog, getElement, isChanged, isEnabled, isVisible, selectParentTab, setValue
Class Detail
CKFinder.ui.dialog.file(dialog, elementDefinition, htmlList)
Since: 2.0
A file upload input.
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 file upload element to a dialog, check CKFinder.dialog.definition.file.
Parameters:
{CKFinder.dialog} dialog
Parent dialog object.
{CKFinder.dialog.uiElementDefinition} elementDefinition
The element definition. Accepted fields:
  • validate (Optional) The validation function.
{Array} htmlList
List of HTML code to output to.
Method Detail
{String} getAction(action)
Since: 2.0
Get the action assigned to the form.
Parameters:
{Undefined} action
Returns:
{String} The value of the action.

{CKFinder.dom.element} getInputElement()
Since: 2.0
Gets the <input> element of this file input.
Returns:
{CKFinder.dom.element} The file input element.

{Undefined} getValue()
Since: 2.0
NO EXAMPLE AVAILABLE

{Undefined} reset()
Since: 2.0
Redraws the file input and resets the file path in the file input. The redraw logic is necessary because non-IE browsers tend to clear the <iframe> containing the file input after closing the dialog.

{CKFinder.ui.dialog.file} submit()
Since: 2.0
Uploads the file in the file input.
Returns:
{CKFinder.ui.dialog.file} This object.

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