Documentation ¶
Index ¶
- Constants
- type Body
- type Canvas
- type CommonElement
- func (c *CommonElement) AddCanvas() *Canvas
- func (c *CommonElement) AddClass(class string)
- func (c *CommonElement) AddDiv() *Div
- func (c *CommonElement) AddInput() *Input
- func (c *CommonElement) AddLabel() *Label
- func (c *CommonElement) AddLi() *Li
- func (c *CommonElement) AddUl() *Ul
- func (c *CommonElement) DefaultDir()
- func (c *CommonElement) DefualtSpellcheck()
- func (c *CommonElement) DisableDraggable()
- func (c *CommonElement) DisableEdit()
- func (c *CommonElement) DisableSpellcheck()
- func (c *CommonElement) EnableDraggable()
- func (c *CommonElement) EnableEdit()
- func (c *CommonElement) EnableSpellcheck()
- func (c *CommonElement) Generate()
- func (c *CommonElement) GetAccesskey() string
- func (c *CommonElement) GetChildren() (js.Value, error)
- func (c *CommonElement) GetDir() string
- func (c *CommonElement) GetID() string
- func (c *CommonElement) GetLang() string
- func (c *CommonElement) GetStyle() string
- func (c *CommonElement) GetTabindex() int32
- func (c *CommonElement) GetTitle() string
- func (c *CommonElement) IsEditable() (bool, error)
- func (c *CommonElement) IsHidden() bool
- func (c *CommonElement) IsSpellcheck() (bool, error)
- func (c *CommonElement) RemoveAccesskey()
- func (c *CommonElement) RemoveAllChild()
- func (c *CommonElement) RemoveContenEditable()
- func (c *CommonElement) RemoveDraggable()
- func (c *CommonElement) RemoveHidden()
- func (c *CommonElement) RemoveLang()
- func (c *CommonElement) RemoveStyle()
- func (c *CommonElement) RemoveTabindex()
- func (c *CommonElement) SetAccesskey(key string)
- func (c *CommonElement) SetHidden()
- func (c *CommonElement) SetID(id string)
- func (c *CommonElement) SetLTRDir()
- func (c *CommonElement) SetLang(langCode string)
- func (c *CommonElement) SetRTLDir()
- func (c *CommonElement) SetStyle(style string)
- func (c *CommonElement) SetTabindex(index int32)
- func (c *CommonElement) SetTitle(title string)
- type Div
- type HtmlGenerator
- type Input
- type Label
- type Li
- type Ul
Constants ¶
const ( AutocompleteON = "on" AutocompleteOFF = "off" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canvas ¶
type Canvas struct { CommonElement Context js.Value Height string `htmlattr:"height"` Width string `htmlattr:"width"` }
func (*Canvas) Get2DContext ¶
func (c *Canvas) Get2DContext()
type CommonElement ¶
func (*CommonElement) AddCanvas ¶
func (c *CommonElement) AddCanvas() *Canvas
func (*CommonElement) AddClass ¶
func (c *CommonElement) AddClass(class string)
func (*CommonElement) AddDiv ¶
func (c *CommonElement) AddDiv() *Div
func (*CommonElement) AddInput ¶
func (c *CommonElement) AddInput() *Input
func (*CommonElement) AddLabel ¶
func (c *CommonElement) AddLabel() *Label
func (*CommonElement) AddLi ¶
func (c *CommonElement) AddLi() *Li
func (*CommonElement) AddUl ¶
func (c *CommonElement) AddUl() *Ul
func (*CommonElement) DefualtSpellcheck ¶
func (c *CommonElement) DefualtSpellcheck()
Remove SPELLCHECK attribute
func (*CommonElement) DisableDraggable ¶
func (c *CommonElement) DisableDraggable()
func (*CommonElement) DisableEdit ¶
func (c *CommonElement) DisableEdit()
Set HTML attribute CONTENTEDITABLE 'false'
func (*CommonElement) DisableSpellcheck ¶
func (c *CommonElement) DisableSpellcheck()
Disable SPELLCHECK attribute
func (*CommonElement) EnableDraggable ¶
func (c *CommonElement) EnableDraggable()
func (*CommonElement) EnableEdit ¶
func (c *CommonElement) EnableEdit()
Set HTML attribute CONTENTEDITABLE 'true'
func (*CommonElement) EnableSpellcheck ¶
func (c *CommonElement) EnableSpellcheck()
Enable SPELLCHECK attribute
func (*CommonElement) Generate ¶
func (c *CommonElement) Generate()
func (*CommonElement) GetAccesskey ¶
func (c *CommonElement) GetAccesskey() string
Get HTML attribute ACCESSKEY
func (*CommonElement) GetChildren ¶
func (c *CommonElement) GetChildren() (js.Value, error)
func (*CommonElement) GetDir ¶
func (c *CommonElement) GetDir() string
Get HTML attribute DIR ltr - left to right rtl - right to left
func (*CommonElement) GetTabindex ¶
func (c *CommonElement) GetTabindex() int32
Get TABINDEX attribute
func (*CommonElement) IsEditable ¶
func (c *CommonElement) IsEditable() (bool, error)
Get HTML attribute CONTENTEDITABLE TRUE - Edit Enable FALSE - Edit Disable
func (*CommonElement) IsSpellcheck ¶
func (c *CommonElement) IsSpellcheck() (bool, error)
Get SPELLCHECK attribute value
func (*CommonElement) RemoveAccesskey ¶
func (c *CommonElement) RemoveAccesskey()
Remove HTML attribute ACCESSKEY
func (*CommonElement) RemoveAllChild ¶
func (c *CommonElement) RemoveAllChild()
func (*CommonElement) RemoveContenEditable ¶
func (c *CommonElement) RemoveContenEditable()
Remove HTML attribute CONTENEDITABLE
func (*CommonElement) RemoveDraggable ¶
func (c *CommonElement) RemoveDraggable()
func (*CommonElement) RemoveHidden ¶
func (c *CommonElement) RemoveHidden()
Remove HTML attribute HIDDEN
func (*CommonElement) RemoveTabindex ¶
func (c *CommonElement) RemoveTabindex()
Remove TABINDEX attribute
func (*CommonElement) SetAccesskey ¶
func (c *CommonElement) SetAccesskey(key string)
Set HTML attribute ACCESSKEY
func (*CommonElement) SetLTRDir ¶
func (c *CommonElement) SetLTRDir()
Set HTML attribute DIR left to right
func (*CommonElement) SetLang ¶
func (c *CommonElement) SetLang(langCode string)
Set HTML attribute LANG lang code
func (*CommonElement) SetRTLDir ¶
func (c *CommonElement) SetRTLDir()
Set HTML attribute DIR right to left
func (*CommonElement) SetTabindex ¶
func (c *CommonElement) SetTabindex(index int32)
Set TABINDEX attribute
func (*CommonElement) SetTitle ¶
func (c *CommonElement) SetTitle(title string)
Set HTML attribute TITLE
type HtmlGenerator ¶
type Input ¶
type Input struct {
CommonElement
}
type Label ¶
type Label struct { CommonElement For string `htmlattr:"for"` InnerHtml string }
type Li ¶
type Li struct { CommonElement Type string `htmlattr:"type"` Value string `htmlattr:"Value"` }