Class InstantClientScript (namespace Nette\Forms)
Instant validation JavaScript generator.
Object | --InstantClientScript
Public Method Summary | |
---|---|
InstantClientScript |
__construct
(Form $form)
|
void |
enable
()
|
static void |
javascript
()
|
string |
Generates the client side validation script.
|
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
string | $doAlert | 'if (element) element.focus(); alert(message);' |
line 43 JavaScript code |
|
string | $doToggle | 'if (element) element.style.display = visible ? "" : "none";' |
line 46 JavaScript code |
|
string | $toggleFunction |
|
line 40 JavaScript event handler name |
|
string | $toggleScript |
|
line 52 |
|
string | $validateFunction |
|
line 37 JavaScript event handler name |
|
string | $validateScript |
|
line 49 |
Method Details | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
line 62 __constructpublic InstantClientScript __construct (Form $form)
|
||||||||||||
line 72 enablepublic void enable ()
|
||||||||||||
line 322 javascriptpublic static void javascript ()
|
||||||||||||
line 110 renderClientScriptpublic string renderClientScript () Generates the client side validation script.
|