Documentation
¶
Overview ¶
Package line implements creation of lines.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New is responsible to create an instance of a Line.
Example ¶
ExampleNew demonstrates how create a line component.
package main
import (
"github.com/flanksource/maroto/v2"
"github.com/flanksource/maroto/v2/pkg/components/col"
"github.com/flanksource/maroto/v2/pkg/components/line"
)
func main() {
m := maroto.New()
line := line.New()
col := col.New(12).Add(line)
m.AddRow(10, col)
// generate document
}
Output:
func NewAutoRow ¶
NewRow is responsible to create an instance of a Line wrapped in a automatic Row.
func NewCol ¶
NewCol is responsible to create an instance of a Line wrapped in a Col.
Example ¶
ExampleNewCol demonstrates how to crete a line wrapped into a column.
package main
import (
"github.com/flanksource/maroto/v2"
"github.com/flanksource/maroto/v2/pkg/components/line"
)
func main() {
m := maroto.New()
lineCol := line.NewCol(12)
m.AddRow(10, lineCol)
// generate document
}
Output:
func NewRow ¶
NewRow is responsible to create an instance of a Line wrapped in a Row.
Example ¶
ExampleNewRow demonstrates how to crete a line wrapped into a row.
package main
import (
"github.com/flanksource/maroto/v2"
"github.com/flanksource/maroto/v2/pkg/components/line"
)
func main() {
m := maroto.New()
lineRow := line.NewRow(10)
m.AddRows(lineRow)
// generate document
}
Output:
Types ¶
type Line ¶
type Line struct {
// contains filtered or unexported fields
}
func (*Line) GetStructure ¶
GetStructure returns the Structure of a Line.
Click to show internal directories.
Click to hide internal directories.