content

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(name string, args Args, w *wasm.Wasm, options ...component.Option) (*component.Gear, error)

New constructs a new component that shows a textarea ands some controls that can be in a view mode or in a edit mode. The edit mode allows saving to our backend server via a REST call.

Types

type Args

type Args struct {
	Day          time.Time
	Mode         Mode
	Immutable    bool
	RestEndpoint string
}

type Mode

type Mode int

mode indicates if we are in view or edit mode.

const (
	UnknownMode      = 0
	View        Mode = 1
	Edit        Mode = 2
)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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