Documentation ¶
Index ¶
- func Accordion() *accordionElement
- func Box(items ...any) *boxElement
- func Button(text string, cb func(id string)) *buttonElement
- func Card() *cardElement
- func Carousel() *carouselElement
- func Check(name, text string) *checkElement
- func Col(width int, item any) *colElement
- func Datalist(name, text string) *datalistElement
- func Dropdown(text string) *dropdownElement
- func Form(cb func(id string, info map[string]string)) *formElement
- func Heading(level uint, msg string) *headingElement
- func Image(url string) *imageElement
- func InputGroup(name, text string) *inputElement
- func Label(text string) *labelElement
- func Link(text, url string) *linkElement
- func List(in ...any) *listElement
- func Map2Table(keyWidth int, in map[string]any) *tableElement
- func Modal(btnText, title string) *modalElement
- func Navbar(name string) *navbarElement
- func Pagination(items []string, cb func(id, item string)) *paginationElement
- func Radio(name string) *radioElement
- func RangeInput(name, text string) *rangeElement
- func Row(items ...any) *rowElement
- func Select(name string) *selectElement
- func Sidebar(title string) *elementSidebar
- func Table(head ...string) *tableElement
- func Tabs() *tabsElement
- func Textarea(name, title string) *textareaElement
- func Video(url string) *videoElement
- type HtmlToken
- func (n *HtmlToken) AddChild(child *HtmlToken) *HtmlToken
- func (n *HtmlToken) AfterElementLoadedFromFramwork(p easyweb.Page)
- func (n *HtmlToken) Base() *HtmlToken
- func (n *HtmlToken) ContainerID() string
- func (n *HtmlToken) Copy() *HtmlToken
- func (n *HtmlToken) GetAttr(k string) string
- func (n *HtmlToken) GetChilds() []*HtmlToken
- func (n *HtmlToken) GetID() string
- func (n *HtmlToken) GetText() string
- func (n *HtmlToken) MessageCallbackFromFramwork(id string, dataType easyweb.CbDataType, data []byte) bool
- func (n *HtmlToken) Refresh(p easyweb.Page) error
- func (n *HtmlToken) SetAttr(k, v string) *HtmlToken
- func (n *HtmlToken) SetCb(typ string, cb ICallback) *HtmlToken
- func (n *HtmlToken) SetChild(child ...*HtmlToken) *HtmlToken
- func (n *HtmlToken) SetContainerID(cid string) *HtmlToken
- func (n *HtmlToken) String() string
- func (n *HtmlToken) Traverse(cb ITraverseCb) error
- type ICallback
- type ITraverseCb
- type InputType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Col ¶ added in v0.1.1
Col generates a col Element.
Parameters:
- width: an integer representing the width of the colElement, 0-12, 0=auto.
- item: any item that needs to be added to the colElement.
func InputGroup ¶
func InputGroup(name, text string) *inputElement
func Navbar ¶
func Navbar(name string) *navbarElement
Navbar creates a new navbarElement with the given name.
Parameters: - name: a string representing the name of the navbarElement.
Returns: - a pointer to the created navbarElement.
func Pagination ¶ added in v0.1.4
func RangeInput ¶
func RangeInput(name, text string) *rangeElement
Types ¶
type HtmlToken ¶
func (*HtmlToken) AfterElementLoadedFromFramwork ¶ added in v0.1.2
func (*HtmlToken) Base ¶ added in v0.1.7
Base returns the HtmlToken itself. easy 'Set' its subclasses, or will lost callback event
func (*HtmlToken) ContainerID ¶ added in v0.1.7
func (*HtmlToken) MessageCallbackFromFramwork ¶
func (*HtmlToken) SetContainerID ¶ added in v0.1.7
If the same container id is set, the content will be updated when written multiple times.
func (*HtmlToken) Traverse ¶
func (n *HtmlToken) Traverse(cb ITraverseCb) error
type ITraverseCb ¶
type InputType ¶ added in v0.1.4
type InputType string
const ( InputTypeButton InputType = "button" InputTypeCheckbox InputType = "checkbox" InputTypeColor InputType = "color" InputTypeDate InputType = "date" InputTypeDatetime InputType = "datetime-local" InputTypeEmail InputType = "email" InputTypeFile InputType = "file" InputTypeHidden InputType = "hidden" InputTypeImage InputType = "image" InputTypeMonth InputType = "month" InputTypeNumber InputType = "number" InputTypePassword InputType = "password" InputTypeRadio InputType = "radio" InputTypeRange InputType = "range" InputTypeReset InputType = "reset" InputTypeSearch InputType = "search" InputTypeSubmit InputType = "submit" InputTypeTel InputType = "tel" InputTypeText InputType = "text" InputTypeTime InputType = "time" InputTypeUrl InputType = "url" InputTypeWeek InputType = "week" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.