Login Register

style

Styling tree nodes and leaf nodes differently

I'm trying to apply different styles to the tree and leaf nodes.

I realized through tinkering and looking at "scripting trees" (http://dojotoolkit.org/book/book-dojo/part-2-dijit-dojo-widget-library/a...) and then looking at a thread (http://trac.dojotoolkit.org/ticket/7194) that I could use "getLabelClass". I can target the either the leaf of the tree node, but I can't apply css to both. I only get the tree node styled with what I currently have. What do I need to do to be able to style both the tree and leaf nodes?

Thanks!

Change style on individual options in filtering select

Hi Guys

is there a way of changing style or disabling individual options in a Filtering select?
Also is there a way of using optGroups?

Thanks

Using template values in 'style' attribute

I have the following template:

<div dojoType="dijit.Declaration" widgetClass="FontDemo" defaults="{value: ''}">
        <div class="font designChoice">
                <span class="font-demo" style="font-family: ${value};">Font: ${value}</span>
        </div>
</div>

And this widget instantiation:

<div dojoType="FontDemo" value="Times New Roman"></div>

Now, I would believe that this would print "Font: Times New Roman", and that the text would be styled in the actual Times New Roman font, right?

Button Padding (Left/Right) Difference Between IE(7) and FF(2 or 3)

Hello All,

I have been strugling with a really annoying problem and figured I'd throw it out to the dojo community for some advice.

Currently I have a a set of buttons to control page content. They work fine and I have had moderate success adjusting their width BUT I cannot get IE and FF to have the exact same width buttons.

<button dojoType='dijit.form.Button'><div style='width: 6em;'>Submit</div></button>

How to change the color of single options of a FilteringSelect

I'm a newbee to dojo and build up a little app...
but now I'm on a point where i can't find help.
I had an PHP-Array and built up a FilteringSelect with this. The Point is to colorize single options in red.

here is the code:

...
$dozentenliste = get_dozentenliste($semid, $datum, $kolleg);
?>

Is it possible to have a narrow TextBox?

The design of one of our applications requires that a certain text box be only wide enough to display a few digits at a time (30px).

There's no problem actually setting the width to 30px but when a user types in the text box, they can only ever see one digit at a time. It seems the rest of the digits are being bumped out of view.

Themes and styling

Hello,

First of all, these are my first words around here, so I would like to say GREAT JOB to everyone involved in Dojo development. I'm new to Dojo, just found out about it, and I'm truly impressed!! NOBODY has given better quality web frontend even in commercial projects. keep it up!! ;)

Now, as a total dojo newbie, I have a few questions about the themes and styling of the widgets.

change row style on onRowClick event

hello every body,

i would like to change the style of a row in a grid when the use clicks on the row.
i tried using the onStyleRow event, but it changes the style of the row as soon as the mouse pointer moves out of the row and not when i click on the row.

any ideas??

thankx...

Changing ComboBox Options Style/Font

For a standard HTML select I can do this:

style="font-family:Courier New; font-size:14pt;"

But for the Dijit ComboBox, it has no effect on the options; instead, it only
affects the style of the type-ahead area of the combo.

Any suggestions?

Thanks!

programmatically change widget style property?

I need to be able to programmatically change a widget's style property (backgroundColor, borderWidth, etc.).

I know how to change the DOM node's style programmatically, but not the widget itself.

I could post some sample code here if it would help... just let me know.

I have tried using attributeMap, dojo.styles(), and simply setting this.style directly and nothing so far has worked. Any ideas?

Syndicate content