webview

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package webview embeds a web page in your screen. For a page people visit and close, browser is simpler and safer.

nimbus native plugin add webview

webview.View{URL: "https://example.com/menu", Style: ui.Style{Grow: 1}}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

type View struct {
	URL    string           // changing it loads the new page
	HTML   string           // or a page of your own, when URL is empty
	OnLoad func(url string) // a page finished loading
	Style  ui.Style         // its size and place on the screen
}

View is a web page.

func (View) Render

func (v View) Render(c *ui.Ctx) ui.Component

Render shows the page.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL