public Render ( string id, string panelHtml, bool draggable, NameContext nameContext, ActionsContext actionsContext ) : string | ||
id | string | |
panelHtml | string | |
draggable | bool | |
nameContext | NameContext | |
actionsContext | ActionsContext | |
Результат | string |
private string RenderVariableValue(VariableValueItemStub value) { var renderer = new CollapsiblePanelRenderer(); var context3 = new CollapsiblePanelRenderer.ActionsContext { IsVisible = true }; CollapsiblePanelRenderer.ActionsContext actionsContext = context3; string id = value.Id.ToShortID().ToString(); actionsContext.Menu = GetActionsMenu(id); var context4 = new CollapsiblePanelRenderer.NameContext(value.Name) { OnNameChanged = "javascript:Sitecore.CollapsiblePanel.nameChanged(this, event)" }; CollapsiblePanelRenderer.NameContext nameContext = context4; string panelHtml = RenderVariableValueDetails(value); return(renderer.Render(id, panelHtml, false, nameContext, actionsContext)); }
private string RenderVariableValue(VariableValueItemStub value) { var renderer = new CollapsiblePanelRenderer(); var context3 = new CollapsiblePanelRenderer.ActionsContext { IsVisible = true }; CollapsiblePanelRenderer.ActionsContext actionsContext = context3; string id = value.Id.ToShortID().ToString(); actionsContext.Menu = GetActionsMenu(id); var context4 = new CollapsiblePanelRenderer.NameContext(value.Name) { OnNameChanged = "javascript:Sitecore.CollapsiblePanel.nameChanged(this, event)" }; CollapsiblePanelRenderer.NameContext nameContext = context4; string panelHtml = RenderVariableValueDetails(value); return renderer.Render(id, panelHtml, false, nameContext, actionsContext); }