|
Zapatec Utils | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Zapatec.Button
Method Summary | |
void
|
_pauseRepeat()
Makes a pause in down action repeats. |
void
|
_repeatDownAction(ev)
Executes down action, and schedules another one. |
void
|
applyStyle(style)
\internal apply given style to button \param style - [string] string value |
void
|
createButton()
\internal creates button object |
Object
|
destroy()
|
void
|
disable()
Disable button |
void
|
enable()
Enable button |
Object
|
getContainer()
Get reference to button main DOM object |
string
|
getText()
Gets the button text. |
void
|
init(objArgs)
Init function. |
Object
|
isEnabled()
Returns true if button is currently enabled |
Object
|
onclick(ev)
\internal Handler for click event |
Object
|
onmousedown(ev)
\internal Handler for mousedown event |
Object
|
onmouseout(ev)
\internal Handler for mouseout event |
Object
|
onmouseover(ev, mouseup)
\internal Handler for mouseover event |
void
|
preloadImages()
\internal Preload button images |
void
|
setPressed(isPressed)
Sets the button in a pressed state |
void
|
setText(text)
Sets the button text. |
void
|
toggleClass(className)
\internal Removes all classes from buttons and adds given class. |
<static> Object
|
setup(elRef, config)
Takes given element (input type=”image|button|submit|reset”, button, image, div or span) and replaces it with Zapatec.Button with given config. |
<static> Object
|
setupAll(elRef, config)
Takes all suitable elements (input type=”image|button|submit|reset” or button) from elRef childs and makes Zapatec.Button.setup() for each of them. |
Method Detail |
void _pauseRepeat()
void _repeatDownAction(ev)
void applyStyle(style)
void createButton()
Object destroy()
void disable()
void enable()
Object getContainer()
string getText()
void init(objArgs)
Object isEnabled()
Object onclick(ev)
Object onmousedown(ev)
Object onmouseout(ev)
Object onmouseover(ev, mouseup)
void preloadImages()
void setPressed(isPressed)
isPressed
- [boolean] if button is to be pressed or not
void setText(text)
text
- {string} text to be set.
void toggleClass(className)
<static> Object setup(elRef, config)
<static> Object setupAll(elRef, config)
|
Zapatec Utils | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |