Exemple #1
0
        public ActionResult GenerateMainToolbar(string name, string parentRenderTo, string childRenderTo)
        {
            string res = ExtJSGenerator.GenerateMainToolbar(name, parentRenderTo, childRenderTo,
                                                            new ExtJSGenerator.Styles
            {
                ParentToolbarClass     = "mainMenu_parenttoolbar",
                ParentItemClass        = "mainMenu_parentitem",
                ParentItemActiveClass  = "mainMenu_parentitem_active",
                ParentItemPassiveClass = "mainMenu_parentitem_passive",
                ChildItemClass         = "mainMenu_childitem",
                ChildItemActiveClass   = "mainMenu_childitem_active",
                ChildItemPassiveClass  = "mainMenu_childitem_passive",
                SubmenuClass           = "workspace_main_menu_submenu",
                SubmenuChildItemClass  = "workspace_main_menu_submenu_child"
            });

            return(Content(res, "text/javascript"));
        }
Exemple #2
0
        public ActionResult GenerateStoreForLeftMenu(string name)
        {
            string res = ExtJSGenerator.GenerateStoreForLeftMenu(name, WsFactory.GetLeftMenu());

            return(Content(res, "text/javascript"));
        }