Documentation
¶
Overview ¶
Package checkbox implements creation of checkboxes.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New is responsible to create an instance of a Checkbox.
Example ¶
ExampleNew demonstrates how to create a checkbox component.
m := maroto.New()
checkbox := checkbox.New("checkbox label", props.Checkbox{
Checked: true,
})
col := col.New(12).Add(checkbox)
m.AddRow(10, col)
// generate document
func NewAutoRow ¶
NewAutoRow is responsible for creating an instance of Checkbox grouped in a Row with automatic height.
Example ¶
ExampleNewAutoRow demonstrates how to create a checkbox component wrapped into a row with automatic height.
m := maroto.New()
checkboxRow := checkbox.NewAutoRow("checkbox label", props.Checkbox{
Checked: true,
Size: 5,
Top: 2,
Left: 2,
})
m.AddRows(checkboxRow)
// generate document
func NewCol ¶
NewCol is responsible to create an instance of a Checkbox wrapped in a Col.
Example ¶
ExampleNewCol demonstrates how to create a checkbox component wrapped into a column.
m := maroto.New() checkboxCol := checkbox.NewCol(12, "checkbox label") m.AddRow(10, checkboxCol) // generate document
Types ¶
type Checkbox ¶
type Checkbox struct {
// contains filtered or unexported fields
}
func (*Checkbox) GetStructure ¶
GetStructure returns the Structure of a Checkbox.
Click to show internal directories.
Click to hide internal directories.