Ext.form.FieldExt.ux.CodePress
Package: | Ext.ux |
Defined In: | Ext.ux.CodePress.js |
Class: | CodePress |
Extends: | Ext.form.Field |
Config Options | Defined By | |
---|---|---|
sourceEl : String
The id of the element to pull code from
The id of the element to pull code from
|
CodePress CodePress | |
code : String
The code to use in the editor
The code to use in the editor
|
CodePress CodePress | |
language : String
The language to render the code with (defaults none)
The language to render the code with (defaults none)
|
CodePress CodePress | |
url : String
The url used to read code which is display in editor
The url used to read code which is display in editor
|
CodePress CodePress | |
height : Int
Height of the editor (defaults false)
Height of the editor (defaults false)
|
CodePress CodePress | |
width : Int
Width of the editor (defaults false)
Width of the editor (defaults false)
|
CodePress CodePress | |
autoResize : Boolean
AutoResize window on change container (defaults false)
AutoResize window on change container (defaults false)
|
CodePress CodePress | |
trim : Boolean
Trim the code of trailing spaces and empty lines (defaults true)
Trim the code of trailing spaces and empty lines (defaults true)
|
CodePress CodePress | |
autoComplete : Boolean
Is autoComplete for keywords turned on or off (defaults true)
Is autoComplete for keywords turned on or off (defaults true)
|
CodePress CodePress | |
readOnly : Boolean
Is the editor readonly (defaults false)
Is the editor readonly (defaults false)
|
CodePress CodePress | |
lineNumbers : Boolean
Are lineNumbers visible (defaults true)
Are lineNumbers visible (defaults true)
|
CodePress CodePress |
This class has no public properties.
Property | Defined By |
---|
Method | Defined By | |
---|---|---|
resize( ) : void
Resize the the editor depending, behavior depends on height,width and autoResize
Resize the the editor depending, behavior depends on height,width and autoResize
Parameters:
|
CodePress CodePress | |
edit( Object obj, String language ) : void
Initailize the editor with a element and set the langauge
Initailize the editor with a element and set the langauge
Parameters:
|
CodePress CodePress | |
getLanguage( ) : String
Get the current langauge used by the editor
Get the current langauge used by the editor
Parameters:
|
CodePress CodePress | |
setOptions( ) : void
Set the options of editor
See config items autoComplete, readOnly, lineNumbers
Set the options of editor
See config items autoComplete, readOnly, lineNumbers
Parameters:
|
CodePress CodePress | |
getCode( ) : String
Original CodePress function to get the code from the editor. For compatibility reasons
with ExtJs TextArea whe implemented getValue
Original CodePress function to get the code from the editor. For compatibility reasons
with ExtJs TextArea whe implemented getValue
Parameters:
|
CodePress CodePress | |
setCode( String code ) : void
Original CodePress function to set the code of the editor.For compatibility reasons
with ExtJs TextArea whe implemented setValue
Original CodePress function to set the code of the editor.For compatibility reasons
with ExtJs TextArea whe implemented setValue
Parameters:
|
CodePress CodePress | |
setValue( String text ) : void
Set the value to be used by the editor
Set the value to be used by the editor
Parameters:
|
CodePress CodePress | |
getValue( ) : String
Get the value of the code within the editor
Get the value of the code within the editor
Parameters:
|
CodePress CodePress | |
toggleAutoComplete( ) : void
Toggle autocomplreate on or off
Toggle autocomplreate on or off
Parameters:
|
CodePress CodePress | |
toggleReadOnly( ) : void
Toggle readonly on or off
Toggle readonly on or off
Parameters:
|
CodePress CodePress | |
toggleLineNumbers( ) : void
Toggle line numbers on or off
Toggle line numbers on or off
Parameters:
|
CodePress CodePress | |
toggleEditor( ) : void
Toggle between codepress and textarea
Toggle between codepress and textarea
Parameters:
|
CodePress CodePress |
Event | Defined By | |
---|---|---|
initialize : ( Object editor )
Fires when the editor is fully initialized (including the iframe)
Fires when the editor is fully initialized (including the iframe)
Listeners will be called with the following arguments:
|
CodePress CodePress | |
activate : ( Object editor )
Fires when the editor is first receives the focus. Any insertion must wait
until after this event.
Fires when the editor is first receives the focus. Any insertion must wait
until after this event.
Listeners will be called with the following arguments:
|
CodePress CodePress |