Posts Tagged ‘drop down control how to’

How to use the Drop Down Control

// December 7th, 2008 // No Comments » // docs

Nifty 0.0.5 adds support for a Drop Down Control. Here we show how to actually use it.

XML

First of all you need to add the standard Nifty controls to your xml. To keep things easy for the moment we use the default Nifty styles too.

<!-- load default styles and controls -->

So adding a Drop Down Control works like adding any other control:

Basically you address the control you want to add, in this case it’s “dropDownControl”. And you need to give your control an id too, so that you can reference it later (“dropDown1″).

(more…)