The following example shows how you can control the data tip offset in a Flex HSlider control by setting the dataTipOffset style.
Full code after the jump.
Continue reading ‘Setting the data tip offset in a Slider control in Flex’
The following example shows how you can set the thickness of a tick on a Flex HSlider control by setting the tickThickness style.
Full code after the jump.
Continue reading ‘Setting the tick thickness on a Slider control in Flex’
The following example shows how you can customize a slider control’s data tip in Flex. This example uses an embedded font and a data tip with a negative data tip offset that overlaps the slider thumb.
Full code after the jump.
Continue reading ‘Customizing a slider control’s data tip’
The following example shows how you can programmatically set tick positions on a Flex Slider control by setting the tickValues property.
Full code after the jump.
Continue reading ‘Programmatically positioning tick marks on a slider control’
The following example shows how you can toggle a Flex Slider control’s tick marks so they are only visible while the user’s mouse cursor is over the HSlider/VSlider control.
Full code after the jump.
Continue reading ‘Toggling a Flex Slider control’s tickInterval property’
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 customize a slider control (HSlider or VSlider) and use your own custom embedded image instead of the default triangle thumb skin.
Full code after the jump.
Continue reading ‘Changing a slider control’s thumb skin’
The following example shows how you can customize the duration and easing function used when a user clicks on a thumb track on an HSlider or VSlider control in Flex.
Full code after the jump.
Continue reading ‘Customizing the slide duration and slide easing function on a Flex slider control’
I was playing around with the HSlider component tonight and was checking out the allowThumbOverlap property. The following example creates a horizontal slider with 2 slider thumbs and lets you toggle the allowThumbOverlap property with the showTrackHighlight property set to true.
Full code after the jump.
Continue reading ‘Using overlapping slider thumbs in the Flex Slider controls’
Well, the title of the post pretty much says it all, but I just noticed this today. It seems that you can highlight the HSlider/VSlider track by setting the showTrackHighlight style to true. I made this really quick mini-app which lets you toggle the style on and off, as well as see the behavior of 1 slider thumb versus 2 slider thumbs.
Full code after the jump.
Continue reading ‘Highlighting a Slider control’s track using the showTrackHighlight style’
Some imaginary blog reader asks, “How do i change a Slider’s dataTip based on which Slider thumb is being dragged?”
I crafted up this sneaky code to listen for the thumbPress and thumbRelease events to log which slider is being… slid?
Full code after the jump.
Continue reading ‘Formatting multiple data tips in a Slider’
I was playing around with the HSlider the other day and needed to format the data tool tip. Thankfully, the Flex SDK makes it very very easy, all you need to do to override the default data tip using the dataTipFormatFunction property. By simply passing in the name of a user-defined function, you can format the data tip text however you want (such as prefixing dollar signs or what have you).
Full code after the jump.
Continue reading ‘Formatting data tips in a Slider’