checkbox

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package checkbox implements creation of checkboxes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(label string, ps ...props.Checkbox) core.Component

New is responsible to create an instance of a Checkbox.

func NewAutoRow

func NewAutoRow(label string, ps ...props.Checkbox) core.Row

NewAutoRow is responsible for creating an instance of Checkbox grouped in a Row with automatic height.

func NewCol

func NewCol(size int, label string, ps ...props.Checkbox) core.Col

NewCol is responsible to create an instance of a Checkbox wrapped in a Col.

func NewRow

func NewRow(height float64, label string, ps ...props.Checkbox) core.Row

NewRow is responsible to create an instance of a Checkbox wrapped in a Row.

Types

type Checkbox

type Checkbox struct {
	// contains filtered or unexported fields
}

func (*Checkbox) GetHeight

func (c *Checkbox) GetHeight(_ core.Provider, _ *entity.Cell) float64

GetHeight returns the height that the checkbox will have in the PDF.

func (*Checkbox) GetStructure

func (c *Checkbox) GetStructure() *node.Node[core.Structure]

GetStructure returns the Structure of a Checkbox.

func (*Checkbox) Render

func (c *Checkbox) Render(provider core.Provider, cell *entity.Cell)

Render renders a Checkbox into a PDF context.

func (*Checkbox) SetConfig

func (c *Checkbox) SetConfig(config *entity.Config)

SetConfig sets the config.

Jump to

Keyboard shortcuts

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