Documentation
¶
Index ¶
- Variables
- func Empty(p EmptyProps) gx.Node
- func EmptyContent(p EmptyContentProps) gx.Node
- func EmptyDescription(p EmptyDescriptionProps) gx.Node
- func EmptyHeader(p EmptyHeaderProps) gx.Node
- func EmptyMedia(p EmptyMediaProps) gx.Node
- func EmptyTitle(p EmptyTitleProps) gx.Node
- type EmptyContentProps
- type EmptyDescriptionProps
- type EmptyHeaderProps
- type EmptyMediaProps
- type EmptyProps
- type EmptyTitleProps
- type Variant
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyContentFixtures = gx.Fixtures[EmptyContentProps]{"Empty": {}}
View Source
var EmptyDescriptionFixtures = gx.Fixtures[EmptyDescriptionProps]{"Text": {Children: gx.Text("Create your first project.")}}
View Source
var EmptyFixtures = gx.Fixtures[EmptyProps]{ "Full": {Children: gx.Frag( EmptyHeader(EmptyHeaderProps{Children: gx.Frag( EmptyMedia(EmptyMediaProps{Variant: Icon, Children: icons.Info(icons.InfoProps{})}), EmptyTitle(EmptyTitleProps{Children: gx.Text("No projects")}), EmptyDescription(EmptyDescriptionProps{Children: gx.Text("Create your first project to start.")}), )}), EmptyContent(EmptyContentProps{Children: button.Button(button.ButtonProps{Children: gx.Text("New project")})}), )}, "Outline": {Class: "border", Children: EmptyHeader(EmptyHeaderProps{Children: gx.Frag( EmptyTitle(EmptyTitleProps{Children: gx.Text("No results")}), EmptyDescription(EmptyDescriptionProps{Children: gx.Text("Change the filter and search again.")}), )})}, }
View Source
var EmptyHeaderFixtures = gx.Fixtures[EmptyHeaderProps]{"Empty": {}}
View Source
var EmptyMediaFixtures = gx.Fixtures[EmptyMediaProps]{ "Icon": {Variant: Icon, Children: icons.Info(icons.InfoProps{})}, "Default": {Children: icons.Info(icons.InfoProps{Class: "size-8"})}, }
View Source
var EmptyTitleFixtures = gx.Fixtures[EmptyTitleProps]{"Title": {Children: gx.Text("No projects")}}
Functions ¶
func Empty ¶
func Empty(p EmptyProps) gx.Node
func EmptyContent ¶
func EmptyContent(p EmptyContentProps) gx.Node
func EmptyDescription ¶
func EmptyDescription(p EmptyDescriptionProps) gx.Node
func EmptyHeader ¶
func EmptyHeader(p EmptyHeaderProps) gx.Node
func EmptyMedia ¶
func EmptyMedia(p EmptyMediaProps) gx.Node
func EmptyTitle ¶
func EmptyTitle(p EmptyTitleProps) gx.Node
Types ¶
type EmptyContentProps ¶
type EmptyDescriptionProps ¶
type EmptyHeaderProps ¶
type EmptyMediaProps ¶
type EmptyMediaProps struct {
// Variant sets the look of the media: Default or Icon. Icon draws a muted rounded box.
Variant Variant
// Class adds classes to the root element.
Class string
// Children is the media, for example an icon.
Children gx.Node
// Attrs adds HTML attributes to the root element.
Attrs gx.Attrs
}
type EmptyProps ¶
type EmptyTitleProps ¶
Click to show internal directories.
Click to hide internal directories.