Scroll Container¶
The Scroll Container is similar to the iframe or scrollable div element in HTML, it contains an object with its own scrollable selection.
Usage¶
import toga
content = toga.WebView()
container = toga.ScrollContainer(content=content)
Scroll settings¶
Horizontal or vertical scroll can be set via the initializer or using the property.
import toga
content = toga.WebView()
container = toga.ScrollContainer(content=content, horizontal=False)
container.vertical = False
Supported Platforms¶
Component | iOS | win32 | web | django | cocoa | gtk | android |
---|---|---|---|---|---|---|---|
ScrollContainer |