Attributes
auto-height
Android
iOS
3.8
Lets the frame height follow the embedded Lynx page’s content height. When enabled, the embedded page can report its content size, and the frame uses that value as its measured height.
auto-width
Android
iOS
3.8
Lets the frame width follow the embedded Lynx page’s content width. When enabled, the embedded page can report its content size, and the frame uses that value as its measured width.
data
Android
iOS
3.4
Passes data to the nested Lynx page within the frame.
enable-multi-async-thread
Android
iOS
3.9
Overrides whether the embedded Lynx page uses multiple asynchronous threads. When omitted, the frame inherits the host setting.
global-props
Android
iOS
3.6
Passes
globalProps
to the Lynx page embedded in the frame. The embedded page can read it via
lynx.__globalProps
.
preset-height
Android
iOS
3.9
Sets the preset height used before the embedded Lynx page receives an initialized content rect.
preset-width
Android
iOS
3.9
Sets the preset width used before the embedded Lynx page receives an initialized content rect.
src
Android
iOS
3.4
Sets the loading path for the frame resource.
Events
Frontend can bind corresponding event callbacks to listen for runtime behaviors of the element, as shown below.
bindload
Android
iOS
3.6
Bind frame load event callback.
bindloadmetrics
Android
iOS
3.9
Bind frame load metrics event callback.