Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCSS ¶
func GenerateCSS() *Stylesheet
Types ¶
type Config ¶ added in v0.0.11
type Config struct {
// ParentID is the DOM id the form mounts under.
ParentID string
// Presenter is built by the module via view.New(...). Required.
Presenter view.Presenter
}
Config is what a renderer needs to draw a view.Presenter — nothing about ops, transport, or codec: that is ALL inside the Presenter already. The module builds the Presenter via view.New(...) (importing view+model+router, never layout) and hands it here.
type CrudView ¶
type CrudView struct {
Element // value embed — NEVER *dom.Element
Title string
Form Component // what Render paints (may stay nil in standalone mode)
Presenter view.Presenter
SearchPlaceholder string
// Additive user hooks — called AFTER the built-in behavior. Assigning them
// can never disable list→form fill, save or delete wiring.
OnSelect func(it view.Item)
OnNew func()
OnSaved func(err error)
OnDeleted func(id string, err error)
OnCancel func()
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.