Tag Archive for 'list'

20
Sep

Toggling item roll over highlighting on a List control in Flex

The following example shows how you can toggle item roll over highlighting on a Flex List control by setting the useRollOver style.

Full code after the jump.

Continue reading ‘Toggling item roll over highlighting on a List control in Flex’

30
Jul

Setting the item selection duration on a List control in Flex

The following example shows how you can set the item selection duration on a Flex List control by setting the selectionDuration style.

Full code after the jump.

Continue reading ‘Setting the item selection duration on a List control in Flex’

29
Jul

Setting an effect when the items in a data provider change on a List control in Flex

The following example shows how you can add a data effect when the items in a data provider change in a Flex List control by setting the itemsChangeEffect effect style.

Full code after the jump.

Continue reading ‘Setting an effect when the items in a data provider change on a List control in Flex’

28
Jul

Setting the label color of a selected item on a List control in Flex

The following example shows how you can set the label color for a selected item in a Flex List control by setting the textSelectedColor style.

Full code after the jump.

Continue reading ‘Setting the label color of a selected item on a List control in Flex’

22
Jul

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’

21
Jul

Setting the label color on a disabled 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’

20
Jul

Setting the text indent on a 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’

17
Jul

Changing the background color of a disabled 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’

11
Jun

Disabling keyboard navigation on the 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’

03
Jun

Changing the text alignment of a 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’

10
Apr

Removing the track skin from 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’

28
Mar

Displaying scroll tips in 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’

26
Mar

Converting an array of String objects to an array of Object objects 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’

27
Jan

Using a CheckBox control as a list item renderer 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’

26
Jan

Scrolling a Flex List control horizontally

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’