Documentation ¶
Index ¶
- Constants
- func NewAlert(title string, caption string, alertType string, dismissible bool) *gowd.Element
- func NewButton(buttontype string, caption string) *gowd.Element
- func NewCell(caption string) *gowd.Element
- func NewColumn(size string, span int, elems ...*gowd.Element) *gowd.Element
- func NewContainer(fluid bool, kids ...*gowd.Element) *gowd.Element
- func NewElement(tag, class string, kids ...*gowd.Element) *gowd.Element
- func NewFormGroup(elems ...*gowd.Element) *gowd.Element
- func NewInput(inputType string) *gowd.Element
- func NewInputGroup(elems ...*gowd.Element) *gowd.Element
- func NewLinkButton(caption string) *gowd.Element
- func NewRow(elems ...*gowd.Element) *gowd.Element
- type Checkbox
- type FileButton
- type FormInput
- type List
- type ListItems
- type Navbar
- type Pagination
- type Panel
- type ProgressBar
- type Table
- type TableRow
Constants ¶
const ( //AlertSuccess ... AlertSuccess = "alert-success" //AlertInfo ... AlertInfo = "alert-info" //AlertWarning ... AlertWarning = "alert-warning" //AlertDanger .. AlertDanger = "alert-danger" )
const ( //ColumnLarge <col-lg> ColumnLarge = "col-lg" //ColumnMedium <col-md> ColumnMedium = "col-md" //ColumnSmall <col-sm> ColumnSmall = "col-sm" //ColumnXtraSmall <col-xs> ColumnXtraSmall = "col-xs" )
const ( //ButtonDefault default bootstrap button ButtonDefault = "btn-default" //ButtonPrimary primary bootstrap button ButtonPrimary = "btn-primary" )
const ( //InputTypeText is <input type=text> InputTypeText = "text" //InputTypeFile is <input type=file> InputTypeFile = "file" //InputTypeCheckbox is <input type=checkbox> InputTypeCheckbox = "checkbox" )
const ( //ListUnordered is <ul> ListUnordered = "ul" //ListOrdered is <ol> ListOrdered = "ol" //DescriptionList is <dl> DescriptionList = "dl" )
NavbarDefault default navbar
const (
//PanelDefault bootstrap default paenl
PanelDefault = "panel-default"
)
const TableStripped = "table-striped"
TableStripped table is stripped
Variables ¶
This section is empty.
Functions ¶
func NewContainer ¶
NewContainer returns new bootstrap container.
func NewElement ¶
NewElement returns new bootstrap element
func NewFormGroup ¶
NewFormGroup returns new bootsrap form group
func NewInputGroup ¶
NewInputGroup creates new bootsrap input group from the given elements
func NewLinkButton ¶
NewLinkButton creates a new bootstrap link button (<a>)
Types ¶
type Checkbox ¶
Checkbox represents a checkbox with label
func NewCheckBox ¶
NewCheckBox creates a bootstrap checkbox with label
type FileButton ¶
FileButton is an file-input linked to a button
func NewFileButton ¶
func NewFileButton(buttontype string, caption string, foldersOnly bool) *FileButton
NewFileButton creates new 'file' input with a button
func (*FileButton) GetValue ¶
func (fb *FileButton) GetValue() string
GetValue returns the selected file value
func (*FileButton) OnChange ¶
func (fb *FileButton) OnChange(handler gowd.EventHandler)
OnChange registers the onchange event
type FormInput ¶
FormInput is a bootstrap "form-group" input
func NewFormInput ¶
NewFormInput creates a bootstrap "form-group" containing an input with a given type and caption
func (*FormInput) SetHelpText ¶
SetHelpText sets the input help text
func (*FormInput) SetPlaceHolder ¶
SetPlaceHolder sets the input placeholder text
type Navbar ¶
type Navbar struct { // contains filtered or unexported fields }
Navbar is a bootstrap navbar element
type Pagination ¶
Pagination is bootstrap pagination element
func NewPagination ¶
func NewPagination() *Pagination
NewPagination creates new bootstrap pagination element
func (*Pagination) AddItem ¶
func (p *Pagination) AddItem(caption string, active bool, handler gowd.EventHandler) *gowd.Element
AddItem adds page to the pagination
type Panel ¶
Panel is a bootstrap panel
func (*Panel) AddToHeading ¶
AddToHeading adds element to panel heading
type ProgressBar ¶
ProgressBar represents bootstrap progress-bar element
func NewProgressBar ¶
func NewProgressBar() *ProgressBar
NewProgressBar creates new bootstrap progress bar element
func (*ProgressBar) SetPercent ¶
func (pb *ProgressBar) SetPercent(percent int) error
SetPercent sets the value of the progress bar as a percentage
func (*ProgressBar) SetText ¶
func (pb *ProgressBar) SetText(caption string)
SetText sets the progress bar's caption
func (*ProgressBar) SetValue ¶
func (pb *ProgressBar) SetValue(now, max int) error
SetValue sets the progress value of the progress bar