Méthode | Description | |
---|---|---|
GetClientCultureInfoSpecification ( System.Web.Script.Serialization.JavaScriptSerializer json, |
||
JavaScriptGenerator ( ) : System | ||
WriteScript ( TextManager manager, string clientClassName, TextWriter output, LanguageInfo language = null, string defaultNamespace = null, Func |
Generates JavaScript functions to evaluate patterns client side
|
|
WriteScriptDependencies ( ) : HtmlString |
Méthode | Description | |
---|---|---|
Write ( string ns, string key, LanguageInfo language, Expression expr, TextWriter output, string clientClassName ) : void |
public static GetClientCultureInfoSpecification ( System.Web.Script.Serialization.JavaScriptSerializer json, |
||
json | System.Web.Script.Serialization.JavaScriptSerializer | |
cultureInfo | ||
Résultat | string |
protected Write ( string ns, string key, LanguageInfo language, Expression expr, TextWriter output, string clientClassName ) : void | ||
ns | string | |
key | string | |
language | LanguageInfo | |
expr | Expression | |
output | TextWriter | |
clientClassName | string | |
Résultat | void |
public WriteScript ( TextManager manager, string clientClassName, TextWriter output, LanguageInfo language = null, string defaultNamespace = null, Func |
||
manager | TextManager | The text manager to extract texts from. |
clientClassName | string | The client name of the generated object. (The script will be var clientClassName = ...) |
output | TextWriter | The generated javascript will be written to this generator. |
language | LanguageInfo | The language for the generated texts (if different from current language). |
defaultNamespace | string | The default namespace for texts. (Set this to your assembly's namespace in plugins) |
filter | Func |
Specify this to only include a subset of the TextManager's texts. |
includeScriptTags | bool | Wraps the generated script in <script> blocks if |
Résultat | void |
public static WriteScriptDependencies ( ) : HtmlString | ||
Résultat | HtmlString |