Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProgressFixtures = gx.Fixtures[ProgressProps]{
"Half": {Value: 50, Label: "Upload"},
"Full": {Value: 100, Label: "Upload"},
"Empty": {Value: 0, Label: "Upload"},
}
Functions ¶
func Progress ¶
func Progress(p ProgressProps) gx.Node
Types ¶
type ProgressProps ¶
type ProgressProps struct {
// Value is the current value. The bar clamps it to the range 0 to Max.
Value int
// Max is the maximum value. A zero value is 100.
Max int
// Label is the accessible name of the progress bar.
Label string
// Class adds classes to the root element.
Class string
// Attrs adds HTML attributes to the root element.
Attrs gx.Attrs
}
Click to show internal directories.
Click to hide internal directories.