The following example shows how you can toggle a drop shadow on a Flex List control by setting the dropShadowEnabled style.
Full code after the jump.
Continue reading ‘Toggling a drop shadow on the List control in Flex’
The following example shows how you can toggle a drop shadow on a Flex List control by setting the dropShadowEnabled style.
Full code after the jump.
Continue reading ‘Toggling a drop shadow on the List control in Flex’
In a previous example, “Changing the background color of a disabled List control in Flex”, we saw how you could customize the background color of a disabled Flex List control by setting the backgroundDisabledColor style.
The following example shows how you can set the label color on a disabled Flex ComboBox control by setting the disabledColor style.
Full code after the jump.
Continue reading ‘Setting the label color on a disabled List control in Flex’
The following example shows how you can set the text indent on a Flex List control by setting the textIndent style.
Full code after the jump.
Continue reading ‘Setting the text indent on a List control in Flex’
The following example shows how you can customize the background color of a disabled Flex List control by setting the backgroundDisabledColor style.
Full code after the jump.
Continue reading ‘Changing the background color of a disabled List control in Flex’
In a previous example, “Disabling keyboard navigation on the Accordion container in Flex”, we saw how to disabe keyboard navigation on the Flex Accordion container by overriding the keyDownHandler() method.
The following example shows how you can disable keyboard navigation on the Flex List control by extending the List class and overriding the protected keyDownHandler() method.
Full code after the jump.
Continue reading ‘Disabling keyboard navigation on the List control in Flex’
The following example shows how you can change the text alignment in a Flex List control by setting the textAlign style.
Full code after the jump.
Continue reading ‘Changing the text alignment of a List control in Flex’
The following example shows how you can remove the track skin from a Flex List control by setting the trackSkin style to null.
Full code after the jump.
Continue reading ‘Removing the track skin from a List control in Flex’
The following example shows how you can display scroll tips in a Flex List control by setting the showScrollTips property. You can also customize the scroll tip text by setting a custom scroll tip function using the scrollTipFunction property.
Full code after the jump.
Continue reading ‘Displaying scroll tips in a List control in Flex’
The following example shows how you can convert an array of strings to an array of objects so it can be used as a data provider in Flex.
Full code after the jump.
Continue reading ‘Converting an array of String objects to an array of Object objects in Flex’
The following example will show you how you can use a CheckBox control as a custom item renderer in a List control in Flex.
I haven’t done a lot of testing yet, so if you have any tips/suggestions/improvements, please, share them in the comments.
Full code after the jump.
Continue reading ‘Using a CheckBox control as a list item renderer in Flex’
The following example shows you how you can create a horizontally scrolling List control in Flex by setting the horizontalScrollPolicy property.
Full code after the jump.
Continue reading ‘Scrolling a Flex List control horizontally’
The following example shows how you can have multiple selected items in a List or DataGrid control at the same time. To select multiple items at once, hold down the Shift or Control keys on your keyboard while pressing the mouse button on a list item.
Full code after the jump.
Continue reading ‘Selecting multiple items in Flex List and DataGrid controls’
The following example shows how you can scroll to a specific item index in Flex by using the scrollToIndex() method.
Full code after the jump.
Continue reading ‘Scrolling to a specific index in a Flex List control’
The following example shows how you can resize a List control in Flex using the rowCount property. By setting the rowCount property, the List control is automatically resized so that only the specified number of rows are displayed.
Full code after the jump.
Continue reading ‘Resizing a Flex List control using the rowCount property’
The following example shows how you can create multi-line rows with wrapping text and variable row heights with the Flex List control.
Full code after the jump.
Continue reading ‘Creating multi-line list rows with variable row heights’