Combobox form field.
Choices must be added to field before adding field into a form object.
Example
var combo : FvComboField = new FvComboField( "Your primary pccupation", true ); combo.addChoice( "basket-ball" ); combo.addChoice( "football" ); combo.addChoice( "actionscript" ); combo.addChoice( "nothing...too tired" );
new FvListField()public function FvListField(label:String, minSelection:Number, selectionMode:Number)Constructor.
label | Field's caption |
minSelection | Minimum elements selection to be valid |
selectionMode | ( optional ) Defines if user can select only one element or more Available values are :
minSelection argument
|
public function setVisibleRowCount(n:Number):Void
Sets the preferred number of rows in the list that can be displayed.
Default is 5.
Must be defined before adding field into a form object.
public function addChoice(o:Object):VoidAdds new choice to combobox.
Choices must be added to field before adding field into a form object.
public function setModel(model:ListModel):Void
Sets in one step the list content using passed-in model definition.
When setModel() is call, all added choices added with addChoice() are ignored.
Model must be defined before adding field into a form object.