Documentation
¶
Overview ¶
Package livevalidation exercises opt-in feedback using the same business rules as authoritative saves, through ordinary and plugin-owned field editors.
Index ¶
- Constants
- func CheckSKU(siblings operation.View, value operation.Value[string]) ([]operation.Issue, error)
- func Collection() core.Collection
- func Config() core.Config
- func Confirmation(name string) field.CheckboxField
- func Global() core.Global
- func PackSizes(name string) field.NumberListField
- func SKU(name string) field.TextField
- func SupplierCodes(name string) field.TextListField
Constants ¶
const ( CardSlug = "live-card" NoteSlug = "live-note" EmbeddedCardSlug = "live-embedded-card" OutlineCardSlug = "live-outline-card" GlobalCardSlug = "live-global-card" )
Block slugs of this contract. A slug names one definition per application, and the browser fixture combines this contract with others that use plain "card" and "note" blocks, so these blocks have their own slugs while keeping the same editor labels. One definition also has one payload envelope, so the rich-text card (blockType/_key) and the outline card (schema/uid) are separate definitions.
Variables ¶
This section is empty.
Functions ¶
func Collection ¶
func Collection() core.Collection
func Confirmation ¶
func Confirmation(name string) field.CheckboxField
func PackSizes ¶
func PackSizes(name string) field.NumberListField
PackSizes demonstrates typed numbers and a sibling-dependent server rule.
func SupplierCodes ¶
func SupplierCodes(name string) field.TextListField
SupplierCodes reuses one business rule for an entire ordered primitive list. Positional messages describe the current snapshot; no primitive item has an ID.
Types ¶
This section is empty.