This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Nov 9, 2012, 2:24 PM
50 Posts

Use theme to set

  • Category: Styles and Themes
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: dojo,dijit,themes
  • Replies: 2
I am sure I have seen something somewhere about how to do this but, of course, when I actually want to use it I can't find it anywhere!? Go figger!
 
How do I use my theme to set the dojo type for a particular control. For instance, I want to set all of my comboBoxes to use dijit.form.ComboBox or my buttons to use dojox.form.BusyButton or dijit.form.Button, etc. I am looking for an example of the <control> syntax.
 
Thanks
Nov 9, 2012, 7:17 PM
366 Posts
Re: Use theme to set
This is the control syntax for a Theme
 
 
 
    <control>
        <name>(component name)</name>
        <property>
            <name>(property name)</name>
            <value>property value</value>
        </property>
    </control>
 
so you could add the dojo type properties to the existing button controls.
Nov 16, 2012, 3:50 PM
50 Posts
Re: Use theme to set
Paul,
 
I understand the basic control syntax. What I don't seem to be able to figure out is what values to use. For instance, the following does not work (but I think it conveys the idea of what I do want to happen):
 
    <control>
        <name>button</name>
        <property>
            <name>dojoType</name>
            <value>dojox.form.BusyButton</value>
        </property>
    </control>
 
However, if I assign a themeId of "Button.busyButton", for example, to all of my buttons, then the following does work:
 
    <control>
        <name>
Button.busyButton</name>
        <property>
            <name>dojoType</name>
            <value>dojox.form.BusyButton</value>
        </property>
    </control>
 
 I just don't see what the advantage of that is. I might just as easily set the dojoType on the button itself.
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal