C# Class Rebel.Framework.Localization.Web.JavaScript.JavaScriptHelpers

Mostra file Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
WriteScript ( this manager, string clientClassName, LanguageInfo language = null, string defaultNamespace = null, Func filter = null, bool includeScriptTags = true ) : System.Web.HtmlString

Creates a JavaScript class to use the TextManager's texts client-side

Method Details

WriteScript() public static method

Creates a JavaScript class to use the TextManager's texts client-side
public static WriteScript ( this manager, string clientClassName, LanguageInfo language = null, string defaultNamespace = null, Func filter = null, bool includeScriptTags = true ) : System.Web.HtmlString
manager this The manager.
clientClassName string Name of the class.
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 true.
return System.Web.HtmlString