Contents
- Usage
- Using the Library
- Using the Themes
- Using the Demo App
- Components
- Accordion
- AnimatedImage
- AutoComplete
- AutoFitText
- BarCode
- BitmapAdjustments
- ButtonBar
- Calculator
- Calendar
- CAPTCHA
- CarouselLayout
- CarouselList
- Clocks
- Colorizer
- ColorPicker
- ColorSpacePicker
- CompassContainer
- CoverflowLayout
- CoverflowList
- CursorManager
- DatePicker
- DockingCompassContainer
- Donut Chart
- ExpandingContainer
- FieldSet
- Filters
- FlexContextMenu
- FloatPaneControlBar
- Funnel Chart
- GraphicsEditor
- Heatmap
- HtmlDragDrop
- HtmlFrame
- HtmlGeolocation
- iCalendarParser
- iCalendarRecurrence
- IconButton
- Linear Gauges
- Magnifier
- Menu and MenuBar
- MiniViewport
- PackedLayout
- PackedList
- Pane
- PopUpButton
- ProgressDisplay
- Radar
- Radial Gauge
- Rating
- ReflectionContainer
- RichTextEditor
- RotaryField
- SafariMouseWheelFix
- Scroller
- Separators
- SliderField
- Sparklines
- TabPaneNavigator
- TextInput
- TimebarContainer
- Timeline
- TimeMachineLayout
- TimeMachineList
- TimePicker
- ToggleSwitchDesktop
- TransformContainer
- TreeMap
- ViewStack
- WheelList
CarouselLayout
Overview
Layout class that lays out elements in a Carousel layout pattern. Supports virtualization
Scrolling
Not a typical layout in the sense that there is no scroll position or overflow along a linear axis. Instead, layout occurs at angles along an arc from 0 to 360 degrees. If layout is not virtualized, all elements are displayed along the arc. If virtualization is enabled, a number of renderers equal to the "maxVisibleVirtualElements" property value are visible along the arc.
For non-virtualized layouts, the arc length in degrees can also be adjusted via the "arcLength" property. For virtualized layouts, the arc length must be 360 degrees.
Components that use this layout should not interact by requesting a scroll delta. They should instead request the "angleOffset" value to center elements in the carousel or iterate the "angleOffset" to animate changes. Because of this, keyboard navigation will require calling functions other than getHorizontalScrollDelta() or getVerticalScrollDelta() or other related scrolling methods. Instead use the getAngleOffsetToElement() method of the CarouselLayout to get the value to set to the "angleOffset" property to center the element in the carousel.
Relevant Properties
The number of properties that can be used to change the visual appearance is numerous. See the ASDocs.
Accessibility and Keyboard Support
Methods used to interact with lists are implemented and scrolling through the layout via the arrow keys is supported (left, right, up, down, home/end).
Mouse Wheel Support
Mouse wheel support is not implemented in this layout. See the CarouselList class for an implementation of mouse wheel support with a CarouselLayout.
Example
See the CarouselLayout demo application for example code.
Back To Top