Archive for docs

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…)

Create your own Nifty Panel Styles – it’s easy! :D

// November 8th, 2008 // No Comments » // docs

To customize and extend the default nifty styles is easy. In this example you add your own panel style :)

Default Styles
Nifty default styles need to be included using the <useStyle> tag:

 <!-- include the default styles-->

To actual use this Style for a panel you use the “style” Attribute in the <panel> tag:

 <!-- panel with "nifty-panel" style -->

When you’re using the two (!) lines you’ll get the well known default “yellow, red, black” colored panel:

default panel style

default panel style

(more…)