Documentation
¶
Overview ¶
templ: version: v0.3.1001
Index ¶
Constants ¶
View Source
const RootClassName = "progress-bar"
Variables ¶
This section is empty.
Functions ¶
func Show ¶
func Show(props ProgressProps) templ.Component
Types ¶
type ProgressProps ¶
type ProgressProps struct {
base.ElementProps
InProgress bool
IsAnimated bool
Percentage int
Label string
LabelCanOverflow bool
StatusClass ProgressStatusClass
}
func (*ProgressProps) BuildClassNames ¶
func (pp *ProgressProps) BuildClassNames() (classNames string)
func (ProgressProps) PercentStyleString ¶
func (pp ProgressProps) PercentStyleString() (percent string)
type ProgressStatusClass ¶
type ProgressStatusClass string
const DangerStatus ProgressStatusClass = "bg-danger"
const InfoStatus ProgressStatusClass = "bg-info"
const SuccessStatus ProgressStatusClass = "bg-success"
const WarningStatus ProgressStatusClass = "bg-warning"
Click to show internal directories.
Click to hide internal directories.