Files
docs/versioned_docs/version-0.0.7/references/g_element_widget.md
T
2024-11-30 06:38:16 +01:00

14 lines
372 B
Markdown

---
title: ElementWidget
---
`ElementWidget` is a trait that defines the Elements and it's rendering / event updates.
## Methods
### `render(&self, focused: bool) -> Option<RenderResult>`
- **required**
- This function renders the element
### `event(&mut self, event: Event, document: &Document)`
- **optional**
- This function updates the element when there is a event