C# 클래스 Rebel.Framework.Localization.Web.JavaScript.JavaScriptHelpers

파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5

공개 메소드들

메소드 설명
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

메소드 상세

WriteScript() 공개 정적인 메소드

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.
리턴 System.Web.HtmlString