Ext.util.ObservableExt.ux.plugin.Designer
Package: | Ext.ux.plugin |
Defined In: | Ext.ux.plugin.Designer.js |
Class: | Designer |
Extends: | Ext.util.Observable |
Config Options | Defined By | |
---|---|---|
autoShow : Boolean
When true the toolbox is show on init
When true the toolbox is show on init
|
Designer Designer | |
disableCaching : Boolean
Should caching be disabled when JSON are loaded (defaults false).
Should caching be disabled when JSON are loaded (defaults false).
|
Designer Designer | |
toolboxTarget : String/Element
When toolboxTarget is set, this will be used to render toolbox to not window
When toolboxTarget is set, this will be used to render toolbox to not window
|
Designer Designer | |
toolboxJson : String
Url used to load toolbox json from defaults to
Url used to load toolbox json from defaults to
|
Designer Designer | |
customProperties : Boolean
Enable or disable the usage of customProperties (defaults false).
When disabled only properties which are defined within Ext.ux.Designer.ComponentsDoc.json are available.
Enable or disable the usage of customProperties (defaults false).
When disabled only properties which are defined within Ext.ux.Designer.ComponentsDoc.json are available.
|
Designer Designer | |
enableCopy : Boolean
Enable or disable the Copy menu button (defaults true).
Enable or disable the Copy menu button (defaults true).
|
Designer Designer | |
enableShow : Boolean
Enable or disable the Show menu button (defaults true).
Enable or disable the Show menu button (defaults true).
|
Designer Designer | |
enableEdit : Boolean
Enable or disable the Edit Json menu button (defaults true).
Enable or disable the Edit Json menu button (defaults true).
|
Designer Designer | |
enableVersion : Boolean
Enable or disable the Help/Version information menu button (defaults true).
Enable or disable the Help/Version information menu button (defaults true).
|
Designer Designer | |
autoLoad : Url
An url specifing the json to load
An url specifing the json to load
|
Designer Designer |
Property | Defined By | |
---|---|---|
fileControl :
A file control config item
|
Designer Designer |
Method | Defined By | |
---|---|---|
init( Component field ) : void
Init the plugin ad assoiate it to a field
Init the plugin ad assoiate it to a field
Parameters:
|
Designer Designer | |
initContextMenu( ) : void
Parameters:
|
Designer Designer | |
removeElement( source, internal ) : void
Parameters:
|
Designer Designer | |
menuUpdate( ) : void
Parameters:
|
Designer Designer | |
markUndo( ) : void
Parameters:
|
Designer Designer | |
undo( ) : void
Parameters:
|
Designer Designer | |
redo( ) : void
Parameters:
|
Designer Designer | |
appendConfig( Element el, Object config, select, dropLocation, source ) : Component
Append the config to the element
Append the config to the element
Parameters:
|
Designer Designer | |
createConfig( ) : void
Create the codeConfig object and apply it to the field
Create the codeConfig object and apply it to the field
Parameters:
|
Designer Designer | |
loadConfig( Element el ) : void
Load a config from URL
Load a config from URL
Parameters:
|
Designer Designer | |
getCode( Element el ) : String
Get the config as string of the specified element
Get the config as string of the specified element
Parameters:
|
Designer Designer | |
getConfig( Element el ) : Object
Get the config of the specified element
Get the config of the specified element
Parameters:
|
Designer Designer | |
setConfig( String/Object json ) : Boolean
Set the config to the design element
Set the config to the design element
Parameters:
|
Designer Designer | |
refresh( ) : void
Refresh the content of the designer
Refresh the content of the designer
Parameters:
|
Designer Designer | |
getContainer( el ) : void
Parameters:
|
Designer Designer | |
redrawElement( Element element, Object config ) : Boolean
redraw an element with the changed config
redraw an element with the changed config
Parameters:
|
Designer Designer | |
selectElement( Element el, Boolean fieldOnNull ) : Component
Select a designElement
Select a designElement
Parameters:
|
Designer Designer | |
highlightElement( Element el ) : Boolean
Highlight a element within the component, removing old highlight
Highlight a element within the component, removing old highlight
Parameters:
|
Designer Designer | |
isElementOf( Element cmp, Element container ) : Component
Check if a element is contained within a other element
Check if a element is contained within a other element
Parameters:
|
Designer Designer | |
getDesignElement( Element el, allowField ) : Component
Find a designElement, this is a ExtJs component which is embedded within this.container
Find a designElement, this is a ExtJs component which is embedded within this.container
Parameters:
|
Designer Designer | |
findByJsonId( id ) : void
Parameters:
|
Designer Designer | |
getDragData( Event e ) : Object
Create the drag data for a element on designerpanel
Create the drag data for a element on designerpanel
Parameters:
|
Designer Designer | |
isContainer( Component cmp ) : Boolean
Check if the given component is a container which can contain other xtypes
Check if the given component is a container which can contain other xtypes
Parameters:
|
Designer Designer | |
notifyOver( Object src, Event e, Object data ) : Boolean
Called when a element is dragged over the component
Called when a element is dragged over the component
Parameters:
|
Designer Designer | |
notifyDrop( Object src, Event e, Object data ) : Boolean
Called when a element is dropped on the component
Called when a element is dropped on the component
Parameters:
|
Designer Designer | |
toolbox( Boolean visible ) : void
Show or hide the toolbox
Show or hide the toolbox
Parameters:
|
Designer Designer | |
propertyFilter( ) : void
Parameters:
|
Designer Designer |
Event | Defined By | |
---|---|---|
beforeshow : ( Object toolbox )
Fires before the toolbox is shown, returning false will disable show
Fires before the toolbox is shown, returning false will disable show
Listeners will be called with the following arguments:
|
Designer Designer | |
beforehide : ( Object toolbox )
Fires before the toolbox is hidden, returning false will cancel hide
Fires before the toolbox is hidden, returning false will cancel hide
Listeners will be called with the following arguments:
|
Designer Designer | |
loadfailed : ( Url url, Object response )
Fires after loadConfig fails
Fires after loadConfig fails
Listeners will be called with the following arguments:
|
Designer Designer |