ScrollDirection
ceramic.ScrollDirection (Enum)
Defines the direction of scrolling for scrollable components.
Used by various UI components to specify whether scrolling should occur horizontally (left/right) or vertically (up/down). This enum helps configure scroll behavior in components like Scroller, ScrollView, and other scrollable containers.
Example usage:
// Create a vertical scroller
var scroller = new Scroller();
scroller.direction = VERTICAL;
// Check scroll direction
if (scrollView.direction == HORIZONTAL) {
// Handle horizontal scrolling
}
See: ceramic.Scroller For touch-based scrolling, ceramic.ScrollView For scrollable view containers
Constructors
HORIZONTAL
HORIZONTAL
Horizontal scrolling direction (left/right). Content moves along the X-axis.
VERTICAL
VERTICAL
Vertical scrolling direction (up/down). Content moves along the Y-axis.
Metadata
Name | Parameters |
---|---|
:flatEnum |
- |