Nov 15, 2012, 8:12 PM
[CLOSED] multiline text not working in button
I needed to add a multiline text button but is not rendering after the <br/> element. How can i achieve this as sencha button works with <br/> tag
@(Html.X().Panel()
.X(10)
.Y(10)
.Hidden(true)
.ID("pnlAppConf")
.Layout(LayoutType.HBox)
.Border(false)
.AutoDoLayout(true)
.Items(i=>
{
i.Add(
(@Html.X().Button()
.ID("btnVisualGlobal")
.Height(100)
.Width(100)
.IconUrl("../resources/icons/Flag_red.png")
.IconAlign(IconAlign.Top)
.Cls("x-btn-default-large")
.Text("Visual Global <br/> Constants")
//.DirectEvents(de => { de.Click.Url = Url.Action("CreateWindow");
//de.Click.ExtraParams.Add(new { obj = "App Config" });
//})
.Margin(15)
.Handler("SlidePanelReverse(this);")
));
i.Add(
(@Html.X().Image()
.ImageUrl("../resources/icons/right-arrow.png")
.Align(System.Web.UI.WebControls.ImageAlign.AbsMiddle)
.Width(100)
.Height(100)
.Margin(15)
));
i.Add(
(@Html.X().Button()
.ID("btnSecurity")
.Height(100)
.Width(100)
.IconUrl("../resources/icons/Flag_blue.png")
.IconAlign(IconAlign.Top)
.Cls("x-btn-default-large")
.Text("Security")
//.DirectEvents(de => { de.Click.Url = Url.Action("CreateWindow");
//})
.Margin(15)
));
}
)
)
Last edited by Daniil; Nov 22, 2012 at 2:37 PM.
Reason: [CLOSED]