Column (컬럼) Widget Control
This page lists the Widget Controls (Property · Method · Event) you use to control the Column widget from a script. To learn about the widget itself and how to use it, visit Column.
In the examples below, columnID is the name (ID) you gave the Column widget on the canvas.
Widget Control summary
| Widget Control | Kind | Signature | Description |
|---|---|---|---|
scrollToAnchor | Method | scrollToAnchor(id): void | Scrolls until the child with the given id is visible (200ms speed) |
Property
Not applicable — the Column widget has no script-only Property. In a script, read and write values with the common Widget Controls (getProperty / setProperty) below.
Method
scrollToAnchor
Scrolls the Column until the child widget with the given id is visible, using an animation of about 200ms. The Column's scrollAnchor property must be turned on, and nothing happens if no child matches the id.
- Parameters
id(string): The id of the child widget to bring into view
- Returns: None (
void)
Example
columnID.scrollToAnchor("section2");
Event
Not applicable — the Column widget has no dedicated Event.
Common Widget Control (all widgets)
Every widget can use name-based common Widget Controls (Method) such as setProperty(name, value) / getProperty(name) / setStyleProperty(styleName, styleProperty, value). For the detailed rules, see the common Widget Control reference (to be written).