progress

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL