Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layout ¶
type Layout struct {
Sections []*Section
}
Layout might look at first similar to glazed_layout.Layout, but it is actually the parsed and computed version used to render an HTML form.
func ComputeLayout ¶
func ComputeLayout( pc *glazed.CommandContext, ) (*Layout, error)
type Section ¶
type Section struct { Title string ShortDescription string LongDescription string Style string Classes string Rows []Row }
func NewSectionFromParameterDefinitions ¶
func NewSectionFromParameterDefinitions( pds map[string]*parameters.ParameterDefinition, values map[string]interface{}, options ...SectionOption) *Section
type SectionOption ¶
type SectionOption func(*Section)
func WithSectionLongDescription ¶
func WithSectionLongDescription(desc string) SectionOption
func WithSectionShortDescription ¶
func WithSectionShortDescription(desc string) SectionOption
func WithSectionTitle ¶
func WithSectionTitle(title string) SectionOption
Click to show internal directories.
Click to hide internal directories.