Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 900 Bytes

Preview.md

File metadata and controls

37 lines (23 loc) · 900 Bytes

Preview

Creates a fixed-size preview root for the IDE canvas.

<Preview ... />

Overview

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.

Topics

Properties

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.

Example

<Preview />

Platform notes

  • AppKit uses the AppKit implementation. UIKit uses the UIKit implementation.

Source: lua/embedded/AppKit.lua:358 (AppKit.Preview)