Nov 12, 2012, 8:02 PM
[CLOSED] How to add a button inside a DesktopModule
How can we add a button inside a desktopmodule.shortcut
@(Html.X().Desktop()
.ID("compdesktop")
.Listeners(l => l.Ready.Handler = "HideComponent(this.desktop, this);")
.DesktopConfig(
(@Html.X().DesktopConfig()
.DDShortcut(false)
.AlignToGrid(true)
.Wallpaper("../Content/resources/wallpapers/backgroud.jpg")
.Title("COMPENSATION")
.TitleAlign(TitleAlign.Center)
.TitleCollapse(true)
.Items(i => i.Add(
(@Html.X().Panel()
.BodyStyle("background-color: green;")
.ID("myPanel")
.Region(Region.West)
)
)
)
)
)
//we want the button here with direct event implemented
.Modules(m => m.Add(
(@Html.X().DesktopModule()
.ModuleID("Module1")
.Shortcut(
(@Html.X().DesktopShortcut()
.Name("Application Configuration")
.IconCls("x-app-shortcut")
.Handler("CreateWindow(this);")
.TextCls("x-long-label")
.SortIndex(1)
.X("100")
.Y("100")
))))
)
Last edited by Baidaly; Nov 13, 2012 at 1:57 AM.