comp

package
v0.0.0-...-a8d3856 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Date     string   `vugu:"data"` // "yyyy-mm-dd" or "".
	TimeFrom string   `vugu:"data"` // "hh:mm" or "".
	TimeTo   string   `vugu:"data"` // "hh:mm" or "".
	Activity string   `vugu:"data"`
	Actors   []string `vugu:"data"`
	Customer string   `vugu:"data"`
	Details  string   `vugu:"data"`
	Duration string   // "h:mm", computed.
}

func ToRecord

func ToRecord(v app.Record) Record

func (Record) ToApp

func (v Record) ToApp() (*app.Record, error)

type RecordForm

type RecordForm struct {
	wire.Appl
	ID     int    // 0 means "Add" form, other means "Edit" form.
	Record Record `vugu:"data"`
	// contains filtered or unexported fields
}

func (*RecordForm) Build

func (c *RecordForm) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut)

func (*RecordForm) Compute

func (c *RecordForm) Compute(ctx vugu.ComputeCtx)

func (*RecordForm) Destroy

func (c *RecordForm) Destroy(ctx vugu.DestroyCtx)

func (*RecordForm) Init

func (c *RecordForm) Init(ctx vugu.InitCtx)

func (*RecordForm) OnRecordAdded

func (c *RecordForm) OnRecordAdded(_ app.EventRecordAdded) bool

type RecordRow

type RecordRow struct {
	Record Record
}

func (*RecordRow) Build

func (c *RecordRow) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut)

Jump to

Keyboard shortcuts

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