X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/docs/output/Ext.form.HtmlEditor.html?ds=inline diff --git a/docs/output/Ext.form.HtmlEditor.html b/docs/output/Ext.form.HtmlEditor.html index a035cc3c..de1d6a6b 100644 --- a/docs/output/Ext.form.HtmlEditor.html +++ b/docs/output/Ext.form.HtmlEditor.html @@ -1,4 +1,8 @@ -
Observable Component BoxComponent Field HtmlEditor
Package: | Ext.form |
Defined In: | HtmlEditor.js |
Class: | HtmlEditor |
Extends: | Field |
Observable + Component + BoxComponent + Field + HtmlEditor
Package: | Ext.form |
Defined In: | HtmlEditor.js |
Class: | HtmlEditor |
Extends: | Field |
layout: 'anchor' // or 'form', or 'absolute'
See Ext.layout.AnchorLayout.anchor also.
See Ext.layout.AnchorLayout.anchor also.
A tag name or DomHelper spec used to create the Element which will +encapsulate this Component.
+You do not normally need to specify this. For the base classes Ext.Component, Ext.BoxComponent, +and Ext.Container, this defaults to 'div'. The more complex Ext classes use a more complex +DOM structure created by their own onRender methods.
+This is intended to allow the developer to create application-specific utility Components encapsulated by +different DOM elements. Example usage:
{
+ xtype: 'box',
+ autoEl: {
+ tag: 'img',
+ src: 'http://www.example.com/example.jpg'
+ }
+}, {
+ xtype: 'box',
+ autoEl: {
+ tag: 'blockquote',
+ html: 'autoEl is cool!'
+ }
+}, {
+ xtype: 'container',
+ autoEl: 'ul',
+ cls: 'ux-unordered-list',
+ items: {
+ xtype: 'box',
+ autoEl: 'li',
+ html: 'First list item'
+ }
+}
true
to use overflow:'auto' on the components layout element and show scroll bars automatically when
necessary, false
to clip any overflowing content (defaults to false
).The maxi Warning: This will override any size mana...
The minimum value in pixels which this BoxComponent will set its height to.
Warning: This will override any size management applied by layout managers.
The minimum value in pixels which this BoxComponent will set its width to.
-Warning: This will override any size management applied by layout managers.
Warning: This will override any size management applied by layout managers.
An array of events that, when fired, should be bubbled to any parent container. +See Ext.util.Observable.enableBubble. +Defaults to [].
The CSS class used to to apply to the special clearing div rendered directly after each form field wrapper to provide field clearing (defaults to 'x-form-clear-left').
@@ -321,18 +357,7 @@ right and left are set to the second. to the second, and the bottom is set to the third.Defaults to:
{top:0, right:0, bottom:0, left:0}
qtip
Display a quick tip containing the message when the user hovers over the field. This is the default.
-title
Display the message in a default browser title attribute popup.under
Add a block div beneath the field containing the error message.side
Add an error icon to the right of the field, displaying the message in a popup on hover.[element id]
Add the error message directly to the innerHTML of the specified element.Defaults to:
{top:0, right:0, bottom:0, left:0}
String html
)
+});Returns:Function fn
, [Object scope
], [Array args
] )
+ :
+ Ext.Componentfn
: Functionscope
: Objectargs
: ArrayExt.Component
String html
)
:
StringString/Array events
)
:
- voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
-this.getBubbleTarget()
if present. There is no implementation in the Observable base class.
This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default -implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to -access the required target more quickly.
-Example:
Ext.override(Ext.form.Field, {
- // Add functionality to Field's initComponent to enable the change event to bubble
- initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
- this.enableBubble('change');
- }),
-
- // We know that we want Field's events to bubble directly to the FormPanel.
- getBubbleTarget : function() {
- if (!this.formPanel) {
- this.formPanel = this.findParentByType('form');
- }
- return this.formPanel;
- }
-});
-
-var myForm = new Ext.formPanel({
- title: 'User Details',
- items: [{
- ...
- }],
- listeners: {
- change: function() {
- // Title goes red if form has been modified.
- myForm.header.setStyle('color', 'red');
- }
- }
+ voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
+this.getBubbleTarget() if present....Enables events fired by this Observable to bubble up an owner hierarchy by calling
+this.getBubbleTarget()
if present. There is no implementation in the Observable base class.
+This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default
+implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to
+access the required target more quickly.
+Example:
Ext.override(Ext.form.Field, {
+ // Add functionality to Field's initComponent to enable the change event to bubble
+ initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {
+ this.enableBubble('change');
+ }),
+
+ // We know that we want Field's events to bubble directly to the FormPanel.
+ getBubbleTarget : function() {
+ if (!this.formPanel) {
+ this.formPanel = this.findParentByType('form');
+ }
+ return this.formPanel;
+ }
+});
+
+var myForm = new Ext.formPanel({
+ title: 'User Details',
+ items: [{
+ ...
+ }],
+ listeners: {
+ change: function() {
+ // Title goes red if form has been modified.
+ myForm.header.setStyle('color', 'red');
+ }
+ }
});
Parameters:events
: String/ArrayThe event name to bubble, or an Array of event names.
Returns:- void
String cmd
, [String/Boolean value
] )
:
voidfn
: FunctionExt.Container
String/Class xtype
)
+true, the container will be returned.fn
: FunctionExt.Container
String/Ext.Component/Class xtype
, [Boolean shallow
] )
:
- Ext.Containerxtype
: String/ClassExt.Container
String eventName
, Object... args
)
+ Ext.Containerxtype
: String/Ext.Component/Classshallow
: BooleanExt.Container
String eventName
, Object... args
)
:
BooleanFires the specified event with the passed parameters (minus the event name).
@@ -665,7 +697,12 @@ or use a render listener directly:new Ext.Panel({
},
single: true // Remove the listener after first invocation
}
-});
Ext.Element
Ext.Element
Array
Number
preventMark
: BooleanBoolean
Boolean
String xtype
, [Boolean shallow
] )
+ BooleanBoolean
String/Ext.Component/Class xtype
, [Boolean shallow
] )
:
BooleanTests whether or not this Component is of a specific xtype. This can test whether this Component is descended @@ -761,7 +798,11 @@ to participate in determination of inherited xtypes.
var t = new Ext.form.TextField();
var isText = t.isXType('textfield'); // true
var isBoxSubclass = t.isXType('box'); // true, descended from BoxComponent
-var isBoxInstance = t.isXType('box', true); // false, not a direct BoxComponent instance
xtype
: Stringshallow
: Booleanxtype
: String/Ext.Component/Classvar c = new Ext.Component();
+console.log(c.isXType(c));
+console.log(c.isXType(Ext.Component));
shallow
: BooleanBoolean
Observable|Element item
, Object|String ename
, Function fn
, Object scope
, Object opt
)
:
voidBoolean scroll
)
+events fired during event suspension will be sent to any listeners now.String msg
, Boolean suppressEvent
)
:
- Ext.BoxComponentscroll
: BooleanExt.BoxComponent
Number height
)
+ voidmsg
: StringsuppressEvent
: BooleanBoolean scroll
)
:
- Ext.BoxComponentheight
: Numberscroll
: BooleanExt.BoxComponent
Mixed height
)
+ :
+ Ext.BoxComponentheight
: MixedExt.BoxComponent
Number x
, Number y
)
@@ -882,10 +928,10 @@ This may be one of:value
: MixedExt.form.Field
Boolean visible
)
:
- Ext.Componentvisible
: BooleanExt.Component
Number width
)
+ Ext.Componentvisible
: BooleanExt.Component
Mixed width
)
:
- Ext.BoxComponentwidth
: Numberwidth
: MixedExt.BoxComponent
sourceEdit
: BooleanString eventName
, Function handler
, [Object scope
] )
:
- voideventName
: Stringhandler
: Functionscope
: ObjectMixed htmlOrData
, [Boolean loadScripts
], [Function callback
] )
+ voideventName
: Stringhandler
: Functionscope
: ObjectBoolean suppressEvent
)
+ :
+ voidsuppressEvent
: BooleanMixed htmlOrData
, [Boolean loadScripts
], [Function callback
] )
:
voidhtmlOrData
: MixedloadScri
:
voidProtected method that will not generally be called directly. It triggers
a toolbar update by reading the markup state...Protected method that will not generally be called directly. It triggers
-a toolbar update by reading the markup state of the current selection in the editor.Parameters:- None.
Returns:- void
Event | Defined By | |
---|---|---|
activate :
+a toolbar update by reading the markup state of the current selection in the editor. Parameters:
| HtmlEditor | |
validateValue( Mixed The )
+ :
+ BooleanUses getErrors to build an array of validation errors. If any errors are found, markInvalid is called
+with the first ... Uses getErrors to build an array of validation errors. If any errors are found, markInvalid is called
+with the first and false is returned, otherwise true is returned. Previously, subclasses were invited
+to provide an implementation of this to process validations - from 3.2 onwards getErrors should be
+overridden instead. Parameters:
| Field |
Event | Defined By | |
---|---|---|
activate :
( HtmlEditor this )
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
|