X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/output/Ext.ColorPalette.html diff --git a/docs/output/Ext.ColorPalette.html b/docs/output/Ext.ColorPalette.html index 09c6d50a..66d2ae45 100644 --- a/docs/output/Ext.ColorPalette.html +++ b/docs/output/Ext.ColorPalette.html @@ -1,4 +1,4 @@ -
Properties Methods Events Config Options Direct Link
Observable
  Component
    ColorPalette

Class Ext.ColorPalette

Package:Ext
Defined In:ColorPalette.js
Class:ColorPalette
Extends:Component
xtype:colorpalette
Simple color palette class for choosing colors. The palette can be rendered to any container.
+
Observable
  Component
    ColorPalette

Class Ext.ColorPalette

Package:Ext
Defined In:ColorPalette.js
Class:ColorPalette
Extends:Component
Simple color palette class for choosing colors. The palette can be rendered to any container.
Here's an example of typical usage:
var cp = new Ext.ColorPalette({value:'993300'});  // initial selected color
 cp.render('my-div');
@@ -36,9 +36,25 @@ directly after each form field wrapper to provide field clearing (defaults to
 which has been configured to use the FormLayout layout
 manager (e.g. Ext.form.FormPanel or specifying layout:'form') and either a
 fieldLabel is specified or isFormField=true is specified.


-

See Ext.layout.FormLayout.fieldTpl also.

Component cls : String
An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be +

See Ext.layout.FormLayout.fieldTpl also.

Component clickEvent : String
The DOM event that will cause a color to be selected. This can be any valid event name (dblclick, contextmenu). +Defa...
The DOM event that will cause a color to be selected. This can be any valid event name (dblclick, contextmenu). +Defaults to 'click'.
ColorPalette cls : String
An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for ...
An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be -useful for adding customized styles to the component or any of its children using standard CSS rules.
Component ctCls : String
An optional extra CSS class that will be added to this component's container. This can be useful for +useful for adding customized styles to the component or any of its children using standard CSS rules.
Component contentEl : String
Optional. Specify an existing HTML element, or the id of an existing HTML element to use as the content +for this comp...

Optional. Specify an existing HTML element, or the id of an existing HTML element to use as the content +for this component.

+
    +
  • Description : +
    This config option is used to take an existing HTML element and place it in the layout element +of a new component (it simply moves the specified DOM element after the Component is rendered to use as the content.
  • +
  • Notes : +
    The specified HTML element is appended to the layout element of the component after any configured +HTML has been inserted, and so the document will not contain this element at the time the render event is fired.
    +
    The specified HTML element used will not participate in any layout +scheme that the Component may use. It is just HTML. Layouts operate on child items.
    +
    Add either the x-hidden or the x-hide-display CSS class to +prevent a brief flicker of the content before it is rendered to the panel.
  • +
Component ctCls : String
An optional extra CSS class that will be added to this component's container. This can be useful for adding customize...

An optional extra CSS class that will be added to this component's container. This can be useful for adding customized styles to the container or any of its children using standard CSS rules. See Ext.layout.ContainerLayout.extraCls also.

@@ -49,7 +65,8 @@ which assigns a value by default:
To configure the above Class with an extra CSS class append to the default. For example, for BoxLayout (Hbox and Vbox):
ctCls: 'x-box-layout-ct custom-class'
-

Component disabled : Boolean
Render this component disabled (default is false).
Component disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component fieldLabel : String
The label text to display next to this Component (defaults to ''). +

Component data : Mixed
The initial set of data to apply to the tpl to +update the content area of the Component.
Component disabled : Boolean
Render this component disabled (default is false).
Component disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component fieldLabel : String
The label text to display next to this Component (defaults to ''). Note: this config is only used when this Component...

The label text to display next to this Component (defaults to '').


Note: this config is only used when this Component is rendered by a Container which has been configured to use the FormLayout layout manager (e.g. @@ -93,7 +110,11 @@ since items are automatically laid out when they are first shown (no sizing is done while hidden).

Component hideParent : Boolean
True to hide and show the component's container when hide/show is called on the component, false to hide and show the...
True to hide and show the component's container when hide/show is called on the component, false to hide and show the component itself (defaults to false). For example, this can be used as a shortcut for a hide -button on a window by setting hide:true on the button when adding it to its parent container.
Component id : String
The unique id of this component (defaults to an auto-assigned id). +button on a window by setting hide:true on the button when adding it to its parent container.
Component html : String/Object
An HTML fragment, or a DomHelper specification to use as the layout element +content (defaults to ''). The HTML conten...
An HTML fragment, or a DomHelper specification to use as the layout element +content (defaults to ''). The HTML content is added after the component is rendered, +so the document will not contain this HTML at the time the render event is fired. +This content is inserted into the body before any configured contentEl is appended.
Component id : String
The unique id of this component (defaults to an auto-assigned id). You should assign an id if you need to be able to ...

The unique id of this component (defaults to an auto-assigned id). You should assign an id if you need to be able to access the component later and you do not have an object reference available (e.g., using Ext.getCmp).

@@ -248,9 +269,9 @@ object. The ptype will be looked up at render time up to determine type of Plugin to create.

If you create your own Plugins, you may register them using Ext.ComponentMgr.registerPlugin in order to be able to -take advantage of lazy instantiation and rendering.
Component ref : String
A path specification, relative to the Component's ownerCt specifying into which -ancestor Container to place a named r...

A path specification, relative to the Component's ownerCt specifying into which -ancestor Container to place a named reference to this Component.

+take advantage of lazy instantiation and rendering.
Component ref : String
A path specification, relative to the Component's ownerCt +specifying into which ancestor Container to place a named r...

A path specification, relative to the Component's ownerCt +specifying into which ancestor Container to place a named reference to this Component.

The ancestor axis can be traversed by using '/' characters in the path. For example, to put a reference to a Toolbar Button into the Panel which owns the Toolbar:

var myGrid = new Ext.grid.EditorGridPanel({
     title: 'My EditorGridPanel',
@@ -269,9 +290,10 @@ For example, to put a reference to a Toolbar Button into the Panel which owns
         }
     }
 });
-

In the code above, if the ref had been 'saveButton' the reference would -have been placed into the Toolbar. Each '/' in the ref moves up one level from the -Component's ownerCt.

Component renderTo : Mixed
Specify the id of the element, a DOM element or an existing Element that this component +

In the code above, if the ref had been 'saveButton' +the reference would have been placed into the Toolbar. Each '/' in the ref +moves up one level from the Component's ownerCt.

+

Also see the added and removed events.

Component renderTo : Mixed
Specify the id of the element, a DOM element or an existing Element that this component will be rendered into. Notes ...

Specify the id of the element, a DOM element or an existing Element that this component will be rendered into.

    @@ -354,7 +376,11 @@ Ext.Element.ap...
A custom style specification to be appl } }) ] -});
Component tpl : String
An existing XTemplate instance to be used in place of the default template for rendering the component.
ColorPalette value : String
The initial color to highlight (should be a valid 6-digit color hex code without the # symbol). Note that +});
Component tpl : String
An existing XTemplate instance to be used in place of the default template for rendering the component.
ColorPalette tplWriteMode : String
The Ext.(X)Template method to use when +updating the content area of the Component. Defaults to 'overwrite' +(see Ext.X...
The Ext.(X)Template method to use when +updating the content area of the Component. Defaults to 'overwrite' +(see Ext.XTemplate.overwrite).
Component value : String
The initial color to highlight (should be a valid 6-digit color hex code without the # symbol). Note that the hex co...
The initial color to highlight (should be a valid 6-digit color hex code without the # symbol). Note that the hex codes are case-sensitive.
ColorPalette xtype : String
The registered xtype to create. This config option is not used when passing a config object into a constructor. This ...
The registered xtype to create. This config option is not used when passing @@ -398,8 +424,10 @@ config for a suggestion, or use a render listener directly:

new
 

See also getEl

Component hidden : Boolean
True if this component is hidden. Read-only.
Component initialConfig : Object
This Component's initial configuration specification. Read-only.
Component ownerCt : Ext.Container
This Component's owner Container (defaults to undefined, and is set automatically when this Component is added to a C...
This Component's owner Container (defaults to undefined, and is set automatically when this Component is added to a Container). Read-only. -

Note: to access items within the Container see itemId.

Component rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

MethodDefined By
 rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

MethodDefined By

Public Events

EventDefined By

Public Events

EventDefined By