Skip to main content
Version: v3+

updateLayout()

Supported from API_LEVEL 4.0. For API compatibility, please refer to API_LEVEL.

Used to re-render the view after modifying the widget tree.

Type

() => void

Example

import { createWidget, widget, updateLayout } from '@zos/ui'

const container = createWidget(widget.VIRTUAL_CONTAINER)
const button = createWidget(widget.BUTTON)

// Add child node
container.addLayoutChild(button)

// Update layout and re-render the view
updateLayout()