components

package
v1.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentBadge

type ContentBadge struct {
	Text      string
	TypeClass string // type primary, secondary, success, danger, warning, info, light, dark, (default secondary)
	IsOutline bool
}

type ContentDropdown

type ContentDropdown struct {
	ID         string
	Label      string
	TypeClass  string // type primary, secondary, success, danger, warning, info, light, dark, link, outline-primary
	IsDisabled bool
	Items      []ContentDropdownItem
}

type ContentDropdownItem

type ContentDropdownItem struct {
	Text       string
	Link       string
	ID         string
	IsDisabled bool
	IsActive   bool
}

type ContentGraph added in v1.8.2

type ContentGraph struct {
	Graph  string // pie, bar
	Labels string
	Values string
	Alt    string
}

type ContentHref

type ContentHref struct {
	Text       string
	Link       string
	Target     string // _blank  _parent  _self _top
	Icon       string
	IsButton   bool
	TypeClass  string // type primary, secondary, success, danger, warning, info, light, dark, link
	IsDisabled bool
}

type ContentList

type ContentList struct {
	ID    string
	Items []ContentListItem
}

type ContentListItem

type ContentListItem struct {
	ID          string
	Text        string
	Description string
	EndElement  string
	//Link       string
	TypeClass  string // primary, secondary, success, danger, warning, info, light, dark
	IsDisabled bool
}

type ContentPagination added in v1.9.4

type ContentPagination struct {
	PageStartRecord int
	PageEndRecord   int
	TotalRecords    int
	PrevLink        string
	NextLink        string
}

type ContentTable

type ContentTable struct {
	ID         string
	TableClass string //   table-primary, table-secondary,.. table-striped table-bordered
	HeadClass  string // table-dark table-light
	AllTH      []ContentTableTH
	AllTD      [][]ContentTableTD
}

type ContentTableTD

type ContentTableTD struct {
	ID         string
	Value      interface{} // string or component struct according ValueType
	ValueClass string
}

type ContentTableTH

type ContentTableTH struct {
	ID        string
	ValueType string // ->  default string, href, badge, list, checkbox
	Value     string
}

type ContentTabledetail added in v1.8.2

type ContentTabledetail struct {
	ID         string
	TableClass string //   table-primary, table-secondary,.. table-striped table-bordered
	HeadClass  string // table-dark table-light
	Title      string
	AllTD      []ContentTabledetailTD
}

type ContentTabledetailTD added in v1.8.2

type ContentTabledetailTD struct {
	ID        string
	Caption   string
	ValueType string      // ->  default string, href, badge
	Value     interface{} // string or component struct according ValueType
}

type CustomAtt added in v1.9.4

type CustomAtt struct {
	AttName  string
	AttValue string
}

type FormButton

type FormButton struct {
	ID         string
	Value      string
	Text       string
	Icon       string
	IsSubmit   bool
	TypeClass  string // type primary, secondary, success, danger, warning, info, light, dark, link, outline-primary
	IsDisabled bool
}

type FormCheckbox

type FormCheckbox struct {
	Label       string
	AllCheckbox []FormCheckboxItem
}

type FormCheckboxItem

type FormCheckboxItem struct {
	ID        string
	Name      string
	Value     string
	Label     string
	IsChecked bool
}

type FormInput

type FormInput struct {
	ID           string
	Label        string
	Type         string
	Placeholder  string
	Value        string
	Hint         string
	Error        string
	IsDisabled   bool
	Autocomplete bool
	IsRequired   bool
	CustomAtt    []CustomAtt
}

type FormRadio

type FormRadio struct {
	Label     string
	AllRadios []FormRadioItem
}

type FormRadioItem

type FormRadioItem struct {
	ID         string
	Name       string
	Value      string
	Label      string
	IsDisabled bool
	IsChecked  bool
}

type FormSelect

type FormSelect struct {
	ID             string
	SelectedOption FormSelectOption
	Label          string
	AllOptions     []FormSelectOption
	IsMultiple     bool
}

type FormSelectOption

type FormSelectOption struct {
	Value   string
	Caption string
}

type FormSwitch added in v1.8.1

type FormSwitch struct {
	ID         string
	Label      string
	IsChecked  bool
	IsDisabled bool
}

type FormTextarea

type FormTextarea struct {
	ID    string
	Label string
	Value string
}

type PageCard

type PageCard struct {
	CardTitle    string
	CardSubTitle string
	CardBody     string
	CardLink     string
}
type PageNav struct {
	NavClass   string // nav-pills, nav-underline
	NavItems   []PageNavItem
	IsVertical bool
	IsTab      bool
}
type PageNavItem struct {
	Text       string
	Link       string
	ID         string
	IsDisabled bool
	IsActive   bool
	ChildItems []PageNavItem
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL