?? ext.colorpalette.html
字號:
?<!--Mock<link rel="stylesheet" type="text/css" href="http://localhost/ext/resources/css/ext-all.css" /><link rel="stylesheet" type="text/css" href="http://localhost/ext/doc/resources/docs.css"/><link rel="stylesheet" type="text/css" href="http://localhost/ext/doc/resources/style.css"/>--><style type="text/css"> body { overflow: scroll; } /** .mdesc .long { display: block; } */</style><!-- End Mock--><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><div class="body-wrap"> <div class="top-tools"> <a class="inner-link" href="#Ext.ColorPalette-props"><img src="/images/s.gif" class="item-icon icon-prop">Properties</a><a class="inner-link" href="#Ext.ColorPalette-methods"><img src="/images/s.gif" class="item-icon icon-method">Methods</a><a class="inner-link" href="#Ext.ColorPalette-events"><img src="/images/s.gif" class="item-icon icon-event">Events</a><a class="inner-link" href="#Ext.ColorPalette-configs"><img src="/images/s.gif" class="item-icon icon-config">Config Options</a><a class="bookmark" href="../docs/?class=Ext.ColorPalette"><img src="/images/s.gif" class="item-icon icon-fav">Direct Link</a> </div><h1>Class Ext.ColorPalette</h1> <table cellspacing="0"> <!-- <tr> <td class="label"> Package: </td> <td class="hd-info"> </td> </tr> --> <tr> <td class="label"> Defined In: </td> <td class="hd-info"> ColorPalette.js </td> </tr> <tr> <td class="label"> Class: </td> <td class="hd-info"> Ext.ColorPalette </td> </tr> <tr> <td class="label"> Extends: </td> <td class="hd-info"> Ext.Component </td> </tr> </table> <div class="description"> 選擇顏色使用的簡單的調色板。調色板可在任意窗口內渲染。<br /> 這里是一個典型用例: <pre><code>var cp = new Ext.ColorPalette({value:'993300'}); // 初始化時選中的顏色cp.render('my-div');cp.on('select', function(palette, selColor){ // 用 selColor 來做此事情});</code></pre </div> <div class="hr"> </div> <a id="Ext.ColorPalette-configs"></a> <h2>配置項</h2> <table cellspacing="0" class="member-table"> <tr> <th class="sig-header" colspan="2"> 配置項 </th> <th class="msource-header"> 定義者 </th> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="itemCls-header"></a> <b>itemCls</b> : String <div class="mdesc"> <div class="short"> 容器元素應用的 CSS 樣式類(默認為 "x-color-palette") </div> <div class="long"> 容器元素應用的 CSS 樣式類(默認為 "x-color-palette") </div> </div> </td> <td class="msource"> ColorPalette </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="value-header"></a> <b>value</b> : String <div class="mdesc"> <div class="short"> 初始化時高亮的顏色(必須為不包含 # 符號的6位16進制顏色編碼)。注... </div> <div class="long"> 初始化時高亮的顏色(必須為不包含 # 符號的6位16進制顏色編碼)。注意16進制編碼是區分大小寫的。 </div> </div> </td> <td class="msource"> ColorPalette </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="allowReselect-header"></a> <b>allowReselect</b> : Boolean <div class="mdesc"> <div class="short"> 如果值為 true, 則在觸發 select 事件時重選已經選擇的顏色 </div> <div class="long"> 如果值為 true, 則在觸發 select 事件時重選已經選擇的顏色 </div> </div> </td> <td class="msource"> ColorPalette </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="id-header"></a> <b>id</b> : String <div class="mdesc"> <div class="short"> 唯一的組件id(默認為自動分配的id)。 </div> <div class="long"> 唯一的組件id(默認為自動分配的id)。 </div> </div> </td> <td class="msource"> <!--如果這不是同個namespace下--> <a ext:cls="Ext.Component" ext:member="#method-id" href="output/Ext.Component.html#method-id"> Component </a> </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="xtype-header"></a> <b>xtype</b> : String <div class="mdesc"> <div class="short"> The registered xtype to create. 用于... </div> <div class="long"> The registered xtype to create. 用于登記一個xtype。 This config option is not used when passing a config object into a constructor. This config option is used only when lazy instantiation is being used, and a child item of a Container is being specified not as a fully instantiated Component, but as a <i>Component config object</i>. The xtype will be looked up at render time up to determine what type of child Component to create.<br><br> The predefined xtypes are listed {@link Ext.Component here}. <br><br> If you subclass Components to create your own Components, you may register them using <a href="###" onClick="alert('Ext.ComponentMgr#registerType');">Ext.ComponentMgr#registerType</a> in order to be able to take advantage of lazy instantiation and rendering. </div> </div> </td> <td class="msource"> <!--如果這不是同個namespace下--> <a ext:cls="Ext.Component" ext:member="#method-xtype" href="output/Ext.Component.html#method-xtype"> Component </a> </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="cls-header"></a> <b>cls</b> : String <div class="mdesc"> <div class="short"> 一個可選添加的CSS樣式類,加入到組件的容器上(默認為'')。 這為容... </div> <div class="long"> 一個可選添加的CSS樣式類,加入到組件的容器上(默認為'')。 這為容器或容器的子節點加入標準CSS規則提供了方便。 </div> </div> </td> <td class="msource"> <!--如果這不是同個namespace下--> <a ext:cls="Ext.Component" ext:member="#method-cls" href="output/Ext.Component.html#method-cls"> Component </a> </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="style-header"></a> <b>style</b> : String <div class="mdesc"> <div class="short"> 作用在組件元素上特定的樣式。該值的有效格式應如Ext.Element#... </div> <div class="long"> 作用在組件元素上特定的樣式。該值的有效格式應如<a href="###" onClick="alert('Ext.Element#applyStyles');">Ext.Element#applyStyles</a>。 </div> </div> </td> <td class="msource"> <!--如果這不是同個namespace下--> <a ext:cls="Ext.Component" ext:member="#method-style" href="output/Ext.Component.html#method-style"> Component </a> </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="plugins-header"></a> <b>plugins</b> : Object/Array <div class="mdesc"> <div class="short"> 針對該組件自定義的功能,是對象或這些對象組成的數組。 一個有效的插件須... </div> <div class="long"> 針對該組件自定義的功能,是對象或這些對象組成的數組。 一個有效的插件須保證帶有一個init的方法以便接收屬于Ext.Component類型的引用。 當一個組件被創建后,若發現由插件可用,組件會調用每個插件上的init方法,傳入一個應用到插件本身。 這樣,插件便能按照組件所提供的功能,調用到組件的方法或響應事件。 </div> </div> </td> <td class="msource"> <!--如果這不是同個namespace下--> <a ext:cls="Ext.Component"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -