Documentation ¶ Index ¶ func New(name string, args Args, w *wasm.Wasm, options ...component.Option) (*component.Gear, error) type Args type Mode 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 ) Source Files ¶ View all Source files content.go Directories ¶ Show internal Expand all Path Synopsis internal data Click to show internal directories. Click to hide internal directories.