That's completely correct, but the 'label' property is only available in Ext 3.0.1 and up.

So for older Ext versions you would use the code from post #7.