| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //go:build js && wasm
- package ultraviolet
- import (
- "syscall/js"
- )
- type RootComponentWeb struct {
- node js.Value
- }
- func NewRootComponentWeb(view View) *RootComponentWeb {
- return &RootComponentWeb{
- node: WebBuildDivInternal(
- js.Value{},
- WebContent(),
- view,
- "",
- "",
- AbstractHandlers{},
- ),
- }
- }
- // Component
- func (this *RootComponentWeb) Build(parent Component) {
- // ...
- }
- func (this *RootComponentWeb) Invalidate() bool {
- return false
- }
- func (this *RootComponentWeb) Clean() {
- WebCleanChildren(this.node)
- }
- // JS
- func (this *RootComponentWeb) Node() js.Value {
- return this.node
- }
|