コード例 #1
0
        public static MvcHtmlString ActionWindow(this HtmlHelper helper, ActionWindowParameters parameters)
        {
            var str = new StringBuilder();

            str.Append(String.Format("<a id='{0}'class='t-button actionWindow'  href='#'>{1}</a>", parameters.Name, parameters.LinkText));

            var wdw = WindowBuilderHelper.CreateWindow(helper, parameters);

            str.Append(wdw.ToHtmlString());

            return(new MvcHtmlString(str.ToString()));
        }
コード例 #2
0
        public static MvcHtmlString GridTopButtonActionWindow(this HtmlHelper helper, ActionWindowParameters parameters)
        {
            var str = new StringBuilder();

            str.Append(String.Format("<div class='t-toolbar t-grid-toolbar t-grid-top'>" +
                                     "<a id='{0}' class='t-button t-button-icontext t-grid-add actionWindow' " +
                                     "href='#'><span class='t-icon t-add'></span>{1}</a></div>", parameters.Name, parameters.LinkText));
            var wdw = WindowBuilderHelper.CreateWindow(helper, parameters);

            str.Append(wdw.ToHtmlString());
            return(new MvcHtmlString(str.ToString()));
        }