コード例 #1
0
        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));
        }
コード例 #2
0
 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);
 }