Documentation ¶
Index ¶
- Constants
- func AjaxPrefilter(i ...interface{})
- func AjaxSetup(options map[string]interface{})
- func AjaxTransport(i ...interface{})
- func Contains(container interface{}, contained interface{}) bool
- func GlobalEval(cmd string)
- func Grep(arr []interface{}, fn func(interface{}, int) bool) []interface{}
- func InArray(val interface{}, arr []interface{}) int
- func IsEmptyObject(sth interface{}) bool
- func IsFunction(sth interface{}) bool
- func IsNumeric(sth interface{}) bool
- func IsPlainObject(sth interface{}) bool
- func IsWindow(sth interface{}) bool
- func IsXMLDoc(sth interface{}) bool
- func Noop() interface{}
- func Now() float64
- func Param(params map[string]interface{})
- func ParseHTML(text string) []interface{}
- func ParseJSON(text string) interface{}
- func ParseXML(text string) interface{}
- func Trim(text string) string
- func Type(sth interface{}) string
- func Unique(arr *js.Object) *js.Object
- type Deferred
- func (d Deferred) Always(fn ...interface{}) Deferred
- func (d Deferred) Done(fn ...interface{}) Deferred
- func (d Deferred) Fail(fn ...interface{}) Deferred
- func (d Deferred) Notify(i interface{}) Deferred
- func (d Deferred) Progress(fn interface{}) Deferred
- func (d Deferred) Promise() *js.Object
- func (d Deferred) Reject(i ...interface{}) Deferred
- func (d Deferred) Resolve(i ...interface{}) Deferred
- func (d Deferred) State() string
- func (d Deferred) Then(fn ...interface{}) Deferred
- type Event
- type JQuery
- func (j JQuery) Add(i ...interface{}) JQuery
- func (j JQuery) AddBack(i ...interface{}) JQuery
- func (j JQuery) AddClass(i interface{}) JQuery
- func (j JQuery) After(i ...interface{}) JQuery
- func (j JQuery) Append(i ...interface{}) JQuery
- func (j JQuery) AppendTo(i interface{}) JQuery
- func (j JQuery) Attr(property string) string
- func (j JQuery) Before(i ...interface{}) JQuery
- func (j JQuery) Blur() JQuery
- func (j JQuery) Call(name string, args ...interface{}) JQuery
- func (j JQuery) Children(selector interface{}) JQuery
- func (j JQuery) ClearQueue(queueName string) JQuery
- func (j JQuery) Clone(b ...interface{}) JQuery
- func (j JQuery) Closest(i ...interface{}) JQuery
- func (j JQuery) Contents() JQuery
- func (j JQuery) Css(name string) string
- func (j JQuery) CssArray(arr ...string) map[string]interface{}
- func (j JQuery) Data(key string) interface{}
- func (j JQuery) Delay(i ...interface{}) JQuery
- func (j JQuery) Dequeue(queueName string) JQuery
- func (j JQuery) Detach(i ...interface{}) JQuery
- func (j JQuery) Each(fn func(int, interface{})) JQuery
- func (j JQuery) Empty() JQuery
- func (j JQuery) End() JQuery
- func (j JQuery) Eq(idx int) JQuery
- func (j JQuery) FadeIn(i ...interface{}) JQuery
- func (j JQuery) FadeOut(i ...interface{}) JQuery
- func (j JQuery) FadeToggle(i ...interface{}) JQuery
- func (j JQuery) Filter(i ...interface{}) JQuery
- func (j JQuery) Find(i ...interface{}) JQuery
- func (j JQuery) First() JQuery
- func (j JQuery) Focus() JQuery
- func (j JQuery) Get(i ...interface{}) *js.Object
- func (j JQuery) Has(selector string) JQuery
- func (j JQuery) HasClass(class string) bool
- func (j JQuery) Height() int
- func (j JQuery) Hide(i ...interface{}) JQuery
- func (j JQuery) Html() string
- func (j JQuery) Index(i interface{}) int
- func (j JQuery) InnerHeight() int
- func (j JQuery) InnerWidth() int
- func (j JQuery) InsertAfter(i interface{}) JQuery
- func (j JQuery) InsertBefore(i interface{}) JQuery
- func (j JQuery) Is(i ...interface{}) bool
- func (j JQuery) Last() JQuery
- func (j JQuery) Load(i ...interface{}) JQuery
- func (j JQuery) Next(i ...interface{}) JQuery
- func (j JQuery) NextAll(i ...interface{}) JQuery
- func (j JQuery) NextUntil(i ...interface{}) JQuery
- func (j JQuery) Not(i ...interface{}) JQuery
- func (j JQuery) Off(i ...interface{}) JQuery
- func (j JQuery) Offset() JQueryCoordinates
- func (j JQuery) OffsetParent() JQuery
- func (j JQuery) On(i ...interface{}) JQuery
- func (j JQuery) One(i ...interface{}) JQuery
- func (j JQuery) OuterHeight(includeMargin ...bool) int
- func (j JQuery) OuterWidth(includeMargin ...bool) int
- func (j JQuery) Parent(i ...interface{}) JQuery
- func (j JQuery) Parents(i ...interface{}) JQuery
- func (j JQuery) ParentsUntil(i ...interface{}) JQuery
- func (j JQuery) Position() JQueryCoordinates
- func (j JQuery) Prepend(i ...interface{}) JQuery
- func (j JQuery) PrependTo(i interface{}) JQuery
- func (j JQuery) Prev(i ...interface{}) JQuery
- func (j JQuery) PrevAll(i ...interface{}) JQuery
- func (j JQuery) PrevUntil(i ...interface{}) JQuery
- func (j JQuery) Prop(property string) interface{}
- func (j JQuery) Ready(handler func()) JQuery
- func (j JQuery) Remove(i ...interface{}) JQuery
- func (j JQuery) RemoveAttr(property string) JQuery
- func (j JQuery) RemoveClass(property string) JQuery
- func (j JQuery) RemoveData(name string) JQuery
- func (j JQuery) RemoveProp(property string) JQuery
- func (j JQuery) ReplaceAll(i interface{}) JQuery
- func (j JQuery) ReplaceWith(i interface{}) JQuery
- func (j JQuery) Resize(i ...interface{}) JQuery
- func (j JQuery) Scroll(i ...interface{}) JQuery
- func (j JQuery) ScrollLeft() int
- func (j JQuery) ScrollTop() int
- func (j JQuery) Select(i ...interface{}) JQuery
- func (j JQuery) Serialize() string
- func (j JQuery) SerializeArray() *js.Object
- func (j JQuery) SetAttr(i ...interface{}) JQuery
- func (j JQuery) SetCss(i ...interface{}) JQuery
- func (j JQuery) SetData(key string, value interface{}) JQuery
- func (j JQuery) SetHeight(value string) JQuery
- func (j JQuery) SetHtml(i interface{}) JQuery
- func (j JQuery) SetOffset(jc JQueryCoordinates) JQuery
- func (j JQuery) SetProp(i ...interface{}) JQuery
- func (j JQuery) SetScrollLeft(value int) JQuery
- func (j JQuery) SetScrollTop(value int) JQuery
- func (j JQuery) SetText(i interface{}) JQuery
- func (j JQuery) SetVal(i interface{}) JQuery
- func (j JQuery) SetWidth(i interface{}) JQuery
- func (j JQuery) Show(i ...interface{}) JQuery
- func (j JQuery) Siblings(i ...interface{}) JQuery
- func (j JQuery) Slice(i ...interface{}) JQuery
- func (j JQuery) SlideDown(i ...interface{}) JQuery
- func (j JQuery) SlideToggle(i ...interface{}) JQuery
- func (j JQuery) SlideUp(i ...interface{}) JQuery
- func (j JQuery) Stop(i ...interface{}) JQuery
- func (j JQuery) Submit(i ...interface{}) JQuery
- func (j JQuery) Text() string
- func (j JQuery) ToArray() []interface{}
- func (j JQuery) Toggle(i ...interface{}) JQuery
- func (j JQuery) ToggleClass(i ...interface{}) JQuery
- func (j JQuery) Trigger(i ...interface{}) JQuery
- func (j JQuery) Underlying() *js.Object
- func (j JQuery) Unwrap() JQuery
- func (j JQuery) Val() string
- func (j JQuery) Width() int
- func (j JQuery) Wrap(obj interface{}) JQuery
- func (j JQuery) WrapAll(i interface{}) JQuery
- func (j JQuery) WrapInner(i interface{}) JQuery
- type JQueryCoordinates
Constants ¶
View Source
const ( JQ = "jQuery" //keys BLUR = "blur" CHANGE = "change" CLICK = "click" DBLCLICK = "dblclick" FOCUS = "focus" FOCUSIN = "focusin" FOCUSOUT = "focusout" HOVER = "hover" KEYDOWN = "keydown" KEYPRESS = "keypress" KEYUP = "keyup" //form SUBMIT = "submit" LOAD = "load" UNLOAD = "unload" RESIZE = "resize" //mouse MOUSEDOWN = "mousedown" MOUSEENTER = "mouseenter" MOUSELEAVE = "mouseleave" MOUSEMOVE = "mousemove" MOUSEOUT = "mouseout" MOUSEOVER = "mouseover" MOUSEUP = "mouseup" //touch TOUCHSTART = "touchstart" TOUCHMOVE = "touchmove" TOUCHEND = "touchend" TOUCHENTER = "touchenter" TOUCHLEAVE = "touchleave" TOUCHCANCEL = "touchcancel" //ajax Events AJAXSTART = "ajaxStart" BEFORESEND = "beforeSend" AJAXSEND = "ajaxSend" SUCCESS = "success" AJAXSUCESS = "ajaxSuccess" ERROR = "error" AJAXERROR = "ajaxError" COMPLETE = "complete" AJAXCOMPLETE = "ajaxComplete" AJAXSTOP = "ajaxStop" )
Variables ¶
This section is empty.
Functions ¶
func AjaxPrefilter ¶
func AjaxPrefilter(i ...interface{})
func AjaxTransport ¶
func AjaxTransport(i ...interface{})
Types ¶
type Deferred ¶
func NewDeferred ¶
func NewDeferred() Deferred
type Event ¶
type Event struct { *js.Object KeyCode int `js:"keyCode"` Target *js.Object `js:"target"` CurrentTarget *js.Object `js:"currentTarget"` DelegateTarget *js.Object `js:"delegateTarget"` RelatedTarget *js.Object `js:"relatedTarget"` Data *js.Object `js:"data"` Result *js.Object `js:"result"` Which int `js:"which"` Namespace string `js:"namespace"` MetaKey bool `js:"metaKey"` ShiftKey bool `js:"shiftKey"` CtrlKey bool `js:"ctrlKey"` PageX int `js:"pageX"` PageY int `js:"pageY"` Type string `js:"type"` }
func (*Event) IsDefaultPrevented ¶
func (*Event) IsImmediatePropogationStopped ¶
func (*Event) IsPropagationStopped ¶
func (*Event) PreventDefault ¶
func (event *Event) PreventDefault()
func (*Event) StopImmediatePropagation ¶
func (event *Event) StopImmediatePropagation()
func (*Event) StopPropagation ¶
func (event *Event) StopPropagation()
type JQuery ¶
type JQuery struct { Jquery string `js:"jquery"` Selector string `js:"selector"` //deprecated according jquery docs Length int `js:"length"` Context string `js:"context"` // contains filtered or unexported fields }
func (JQuery) ClearQueue ¶
func (JQuery) FadeToggle ¶
func (JQuery) InnerHeight ¶
func (JQuery) InnerWidth ¶
func (JQuery) InsertAfter ¶
func (JQuery) InsertBefore ¶
func (JQuery) Offset ¶
func (j JQuery) Offset() JQueryCoordinates
func (JQuery) OffsetParent ¶
func (JQuery) OuterHeight ¶
func (JQuery) OuterWidth ¶
func (JQuery) ParentsUntil ¶
func (JQuery) Position ¶
func (j JQuery) Position() JQueryCoordinates
func (JQuery) RemoveAttr ¶
func (JQuery) RemoveClass ¶
func (JQuery) RemoveData ¶
func (JQuery) RemoveProp ¶
func (JQuery) ReplaceAll ¶
func (JQuery) ReplaceWith ¶
func (JQuery) ScrollLeft ¶
func (JQuery) SerializeArray ¶
func (JQuery) SetOffset ¶
func (j JQuery) SetOffset(jc JQueryCoordinates) JQuery
func (JQuery) SetScrollLeft ¶
func (JQuery) SetScrollTop ¶
func (JQuery) SlideToggle ¶
func (JQuery) ToggleClass ¶
func (JQuery) Underlying ¶
type JQueryCoordinates ¶
Click to show internal directories.
Click to hide internal directories.