Exemplo n.º 1
0
        public static HtmlString CtrlTable(this HtmlHelper html, string viewName, string id, string title, string columnsTitle, string ColumnsDataName, string onSelectFunction, string clase)
        {
            var ctrl = new CtrlTableModel
            {
                ViewName        = viewName,
                Id              = id,
                Title           = title,
                Columns         = columnsTitle,
                ColumnsDataName = ColumnsDataName,
                FunctionName    = onSelectFunction,
                Clase           = clase
            };

            return(new HtmlString(ctrl.GetHtml()));
        }
Exemplo n.º 2
0
        public static HtmlString CtrlTable(this HtmlHelper html, string viewName, string id, string title,
                                           string columnsTitle, string ColumnsDataName, string onSelectFunction)
        {
            var ctrl = new CtrlTableModel
            {
                ViewName        = viewName,
                Id              = id,
                Title           = title,
                Columns         = columnsTitle,
                ColumnsDataName = ColumnsDataName,
                FunctionName    = onSelectFunction
            };

            //return new HtmlString("<h1>"+ctrl.Title +"</h1>");
            return(new HtmlString(ctrl.GetHtml()));
        }
Exemplo n.º 3
0
        public static HtmlString CtrlTable(this HtmlHelper html, string id, string title, string columnHeaders, string onSelect)
        {
            var ctrl = new CtrlTableModel(id, title, columnHeaders, onSelect);

            return(new HtmlString(ctrl.GetHtml()));
        }