Documentation
¶
Overview ¶
Package htmllist implements HTML-style bullet and numbered list components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatMarker ¶
FormatMarker returns the formatted marker string for a given style and 0-based index.
Types ¶
type HTMLList ¶
type HTMLList struct {
// contains filtered or unexported fields
}
HTMLList is a core.Component rendering bullet/numbered lists.
func (*HTMLList) GetStructure ¶
GetStructure returns the component node for snapshots/debugging.
func (*HTMLList) Render ¶
Render draws all list items into the PDF cell. Each item's row height is the actual wrapped height of its content (not a fixed single-line itemH) — this prevents markers from stacking when items have long text that wraps to multiple lines. The marker (text or circle) is always positioned at the top of its item's row, anchored to the first line of content.
type Prop ¶
type Prop struct {
Style StyleType
Start int // 1-based first marker value; 0 = default
Reversed bool // ordered markers count down from Start or item count
Indent float64 // mm per nesting level
MarkerPadding float64 // mm gap between marker and content
GutterWidth float64 // 0 = measure at render time
// MarkerBackground is the fill color used for circle markers (DecimalCircle).
// Default: dark navy (#1a3e72) when nil.
MarkerBackground *props.Color
// MarkerTextColor is the text color used for the number inside circle markers.
// Default: white when nil.
MarkerTextColor *props.Color
}
Prop holds list-level configuration.