Cells
About Explore Terms Docs Forum Login Donate
Forum > Tips and tricks > Get familiar with Automatic UI control

Get familiar with Automatic UI control

Posted by suprb 4/8/2025, 12:01:44 PM 18 views
A feature that I'm particularly excited about is the Automatic UI control. ``` let speed = 5; // @control @min=0.1 @max=5.0 ``` Becomes: User uploaded image The basic `@control` annotation marks a variable for automatic UI control generation. When you add this annotation to a variable in your grid function code, the system will generate an appropriate UI control based on the variable's data type: For numbers: Creates a slider and number input For booleans: Creates a checkbox For strings: Creates a text input For color values (hex format): Creates a color picker Read more about it here: https://cells.live/docs

0 Replies

No replies yet.

Please login to reply