HTMLButtonByAction Method |
Namespace: SOWIWeb.Helper
public static string ButtonByAction( string pController, string pAction, Object pValue, string pIcon, string pLabel, bool pDisabled = false, string pStyle = "btn btn-default", string pTooltipText = "", DataPlacements pTooltipPlacement = DataPlacements.bottom )
[Missing <returns> documentation for "M:SOWIWeb.Helper.HTML.ButtonByAction(System.String,System.String,System.Object,System.String,System.String,System.Boolean,System.String,System.String,SOWIWeb.Helper.DataPlacements)"]
<div class="table-btn print-none"> @Html.Raw(SOWIWeb.Helper.HTML.ButtonByAction("QualiTemplateCriterion", "Edit", new { id = item.ID }, "glyphicon glyphicon-pencil", "", false, "btn btn-xs")) </div>
protected virtual List<SOWIWeb.Helper.ToolbarButton> IndexGetToolbarItem() { var lToolbar = new List<SOWIWeb.Helper.ToolbarButton>(); lToolbar.Add(new SOWIWeb.Helper.ToolbarButton(this.ControllerName, SOWIWeb.Helper.ToolbarButtonsIndex.Edit.ToString(), "glyphicon glyphicon-pencil", "", !this.CanEdit)); lToolbar.Add(new SOWIWeb.Helper.ToolbarButton(this.ControllerName, SOWIWeb.Helper.ToolbarButtonsIndex.Details.ToString(), "glyphicon glyphicon-folder-open", "", !this.CanDetails)); lToolbar.Add(new SOWIWeb.Helper.ToolbarButton(this.ControllerName, SOWIWeb.Helper.ToolbarButtonsIndex.Delete.ToString(), "glyphicon glyphicon-trash", "", !this.CanDelete)); return lToolbar; }
<a class="btn btn-default" href="@Url.Action("Edit", lControllerName, new { id = item.ID })" role="button"><span class="glyphicon glyphicon-pencil"></span></a> <a class="btn btn-default" href="@Url.Action("Details", lControllerName, new { id = item.ID })" role="button"><span class="glyphicon glyphicon-folder-open"></span></a> <a class="btn btn-default" href="@Url.Action("Delete", lControllerName, new { id = item.ID })" role="button"><span class="glyphicon glyphicon-trash"></span></a>