Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCSS ¶
func GenerateCSS() *Stylesheet
Types ¶
type CrudView ¶
type CrudView struct {
Element // value embed — NEVER *dom.Element
Title string // h1, top-left corner of the panel (white on accent bar)
Form Component // LEFT slot, the protagonist (typically *form.Form)
Source Source // feeds the right-hand list; zero Source = full-page
// Interaction callbacks — the composition root wires these to the form
// and transport ONCE per app; modules never re-implement them.
OnSelect func(it Item) // list card clicked → load into form
OnNew func() // (+) pressed → reset form for create
OnSave func(done func(err error)) // (💾) pressed; done(nil) reloads list
OnDelete func(id string, done func(err error)) // (−) pressed on selection
OnCancel func() // (↺) pressed → undo current edit
OnError func(err error) // list load/decode failures; nil = drop
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.