public GetStartUpScript ( bool incDocReady ) : string | ||
incDocReady | bool | /// If true wraps the initialisation script with a jQuery document.ready section /// If false only the control initialisation script is written. /// |
return | string |
public string GetStartUpScript(bool incDocReady) {
bool prettyRender = this.Rendering.PrettyRender;
int tabDepth = this.Rendering.TabDepth;
jStringBuilder sb = new jStringBuilder(prettyRender, tabDepth);
if (incDocReady)
sb.AppendUIStartUp(this.GetControlScript(tabDepth));
else
sb.AppendLineIf(this.GetControlScript(tabDepth));
return sb.ToString();
}
SelectMenu::GetStartUpScript ( ) : string |
public string JavaScriptCode(SelectMenu mnu) { mnu.Rendering.SetPrettyRender(true); return mnu.GetStartUpScript(); }