Documentation
¶
Overview ¶
Package table implements a vertical, single column layout system. Views are layed out from top to bottom.
l := &table.Layouter{}
childView := NewChildView(...)
l.Add(childView, nil) // The height of the view is determined by the child's layouter.
return view.Model{
Views: l.Views(),
Layouter:l,
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Behavior ¶ added in v0.2.0
type Behavior interface {
}
TODO(KD): Behavior does nothing at the moment.
type Layouter ¶
type Layouter struct {
StartEdge layout.Edge // If no edges or more than one edge is specified layout.EdgeTop will be used.
// contains filtered or unexported fields
}
func (*Layouter) Add ¶
Add adds v to the layouter and positions it with g. Pass nil for the behavior.
Click to show internal directories.
Click to hide internal directories.