Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SheetFixtures = gx.Fixtures[SheetProps]{ "Right": { Id: "demo-sheet", Title: "Filters", Description: "Narrow the result set.", Children: gx.Text("Sheet body."), Trigger: button.Button(button.ButtonProps{Variant: button.Outline, Children: gx.Text("Open sheet")}), }, "Bottom": { Id: "demo-sheet-bottom", Side: Bottom, Title: "Filters", Trigger: button.Button(button.ButtonProps{Variant: button.Outline, Children: gx.Text("Open bottom sheet")}), }, }
Functions ¶
func Sheet ¶
func Sheet(p SheetProps) gx.Node
Types ¶
type SheetProps ¶
type SheetProps struct {
// Id is the id of the dialog element. The trigger opens the sheet by this id.
Id string
// Side sets the edge of the screen that the sheet slides from: Right, Left, Top or Bottom.
Side Side
// Title is the heading of the sheet. An empty value renders no heading.
Title string
// Description is the text below the title. An empty value renders no description.
Description string
// Trigger is the element that opens the sheet on a click. A nil value renders no trigger.
Trigger gx.Node
Footer gx.Node
// Open renders the sheet open on the first render.
Open bool
// Class adds classes to the dialog element.
Class string
// Children is the content of the sheet.
Children gx.Node
// Attrs adds HTML attributes to the dialog element.
Attrs gx.Attrs
}
Click to show internal directories.
Click to hide internal directories.