Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedTableBuilder ¶
type AdvancedTableBuilder interface { AsElm() htmlwrapper.Elm GetPaginationBuilder() PaginationBasicBuilder GetTableBuilder() TableBuilder }
func NewAdvancedTableBuilder ¶
func NewAdvancedTableBuilder[T interface{}](ref []T) AdvancedTableBuilder
type FormBuilder ¶
type FormBuilder interface { ActionMethod(method HTTPMethod, action string) FormBuilder GetTypeMapperConv() typetohtml.TypeMapperConv RegisterMappingMulti(mapping map[string]func(structField reflect.StructField, value reflect.Value, refStruct interface{}) htmlwrapper.Elm) SetDefaultMappings() FormBuilder AsElm() htmlwrapper.Elm }
func NewFormBuilder ¶
func NewFormBuilder[T interface{}](ref T) FormBuilder
type HTTPMethod ¶
type HTTPMethod string
const ( HTTPMethodGet HTTPMethod = "get" HTTPMethodPost = "post" )
type InputBuilder ¶
type InputBuilder interface { AsHTML() (string, error) AsElm() htmlwrapper.Elm SetKind(kind bootstrap.BsInputType) InputBuilder SetId(id string) InputBuilder SetName(name string) InputBuilder SetPlaceholder(placeholder *string) InputBuilder SetValue(value *string) InputBuilder SetSize(size bootstrap.BsInputSize) InputBuilder SetReadonly(readonly bool) InputBuilder SetPlaintext(plaintext bool) InputBuilder SetChecked(checked bool) InputBuilder SetRequired(required bool) InputBuilder SetLabel(label *string) InputBuilder }
func NewInput ¶
func NewInput() InputBuilder
type PaginationBasicBuilder ¶
type PaginationBasicBuilder interface { AsElm() htmlwrapper.Elm GetJustifyContent(justifyContent bootstrap.BsNavJustifyContent) PaginationBasicBuilder GetSize(size bootstrap.BsPaginationSize) PaginationBasicBuilder SetResultCount(resultCount int) PaginationBasicBuilder SetResultsPerPageOptions(resultsPerPageOptions []int) PaginationBasicBuilder SetCurrentPage(currentPage int) PaginationBasicBuilder SetCurrentResultsPerPage(currentResultsPerPage int) PaginationBasicBuilder SetResultsPerPagePrependLabel(resultsPerPagePrependLabel string) PaginationBasicBuilder SetHrefGenerator(hrefGenerator func(pageNumber int, numberOfResultsPerPage int) string) PaginationBasicBuilder }
func NewPaginationBasicBuilder ¶
func NewPaginationBasicBuilder() PaginationBasicBuilder
type SelectBuilder ¶
type SelectBuilder interface { AsHTML() (string, error) AsElm() htmlwrapper.Elm AddEntry(value, content string, disabled bool) SelectBuilder SetLabel(label *string) SelectBuilder SetName(name string) SelectBuilder SetSelectedItem(selectedItem *string) SelectBuilder }
func NewSelect ¶
func NewSelect() SelectBuilder
type TableBuilder ¶
type TableBuilder interface { AsElm() htmlwrapper.Elm GetTableMapping() TableMapping GetTypeMapperConv() typetohtml.TypeMapperConv SetStriped(striped bool) TableBuilder SetHoverable(hoverable bool) TableBuilder SetColor(color bootstrap.BsTableColor) TableBuilder SetBorder(border bootstrap.BsTableBorderColor) TableBuilder SetSize(size bootstrap.BsTableSize) TableBuilder SetCaption(caption *bootstrap.TableCaption) TableBuilder }
func NewTableBuilder ¶
func NewTableBuilder[T interface{}](ref []T) TableBuilder
type TableMapping ¶
type TableMapping interface { Set(fieldName string, labelName string) TableMapping RemoveByFieldName(fieldName string) TableMapping MoveToIndex(fieldName string, idx uint) TableMapping OnlyInclude(fieldNames []string) TableMapping GetEntries() []tableMappingEntry }
Click to show internal directories.
Click to hide internal directories.