Ext.Template support and AdditionalConfig property usage
*NEW - Coolite Toolkit Version 0.7 now available for DOWNLOAD. See also Examples Explorer.
 

Coolite Forums

Welcome Guest ( Login | Register )
 
Ext.Template support and AdditionalConfig...
Subscribe
Last Login: 12/31/2008 4:57:30 PM
Posts: 17,
Posted 7/4/2008 3:25:29 PM

Group: Coolite Premium Member & Early Adopter
Hi there,

Just wondering when/if support for the Ext.Template object is planned into the development? At the moment I need to change the presentation of a Ext.Button control (which cannot be implemented through straight CSS).. Am playing around with the RenderBeginTag, Render, methods etc without much luck. Maybe there is another way??

I thought I may be able to achieve the same result by adding the Javascript before the script is rendered. Either through additional config options manipulation before script rendering or totally overwrite what is rendered (then why use the control). I played with the AdditionalConfig property of the Coolite.Ext.Web.Component but either it never compiled due to my errors or, if it did, nothing was rendered. What does this property do and how do I utlise it?

Anyhow, loving the objects but finding a few issues in extending them for customised purposes - more than likely because I am new to the toolkit.

cheers,
Conor
Last Login: Today @ 2:42:38 AM
Posts: 1,644,
Posted 7/5/2008 11:54:47 PM

Group: Core Development Team
Hi Conor,

Can you post a sample of what button style/functionality you're trying to accomplish? A screen capture, mockup or link to a sample somewhere would help us understand the problem and we should be able to post some code to point you in the right direction.

The templates are really for just rendering data.
--
Geoffrey McGill
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
twitter [coolite | personal]
Last Login: 12/31/2008 4:57:30 PM
Posts: 17,
Posted 7/7/2008 2:58:57 AM

Group: Coolite Premium Member & Early Adopter
Hi Geoffrey

I am developing the desktop example as a new component for Coolite. This is mainly to learn Coolite and push its extendability; for me to review if its a technology that I can incorporate into other projects. The button I was referring to was the start button. The ExtJS code from the example is



this.startBtn = new Ext.Button({
            text: 'Start',
            id: 'ux-startbutton',
            iconCls:'start',
            menu: this.startMenu,
            menuAlign: 'bl-tl',
            renderTo: 'ux-taskbar-start',
            clickEvent:'mousedown',
            template: new Ext.Template(
    '<table border="0" cellpadding="0" cellspacing="0" class="x-btn-wrap"><tbody><tr>',
    '<td class="ux-startbutton-left"><i>&#160;</i></td><td class="ux-startbutton-center"><em unselectable="on"><button class="x-btn-text" type="{1}" style="height:30px;">{0}</button></em></td><td class="ux-startbutton-right"><i>&#160;</i></td>',
    "</tr></tbody></table>")
        });



The application of the Ext.Template here was something I was looking into. I have found out how and what AdditionalConfig Attribute is used for; however I have only been successful in adding string attributes and not new objects such as Ext.Template above.

Essentially, if there are examples anywhere that show cusomtised implementation of Coolite controls (i.e. extending Coolite.Ext.Web.Component object; or others) that would help but as I am getting more into this; things have become much clearer and easier to customise. However, examples which show creation/manupilation of complex properties/configoptions that are not supported in the Coolite library at the moment (eg: Ext.menu.Menu). This will enable me (and others) to build new controls based on ExtJS API until the Coolite library is more mature and more controls supported (i.e. a short term workaround). My end goal however is to extend Coolite base objects, and not just add straight javascript. Main reason for this is to keep the page sequence events (rendering, etc) inline with each other.

cheers,
Conor
  
« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -8:00, Time now is 3:35am