Creates a fixed-size preview root for the IDE canvas.
<Preview ... />This component is backed by the platform control or container. Prefer its XML tag in an .etlua template; keep view-tree construction out of controllers.
| Name | Type | Required | Description |
|---|---|---|---|
content |
value | optional | Rendered child content or the control’s text value. |
height |
number | optional | Component-specific setting passed to the native control. |
width |
number | optional | Component-specific setting passed to the native control. |
<Preview />
- AppKit uses the AppKit implementation. UIKit uses the UIKit implementation.
Source: lua/embedded/AppKit.lua:358 (AppKit.Preview)