//[SampleMetadataTag(Name = BuiltInTagNames.SampleHidden)] public void CanDeploySimpleTreeViewSettingsDefinition() { var treeViewSettings = new TreeViewSettingsDefinition { TreeViewEnabled = true, QuickLaunchEnabled = true }; var model = SPMeta2Model.NewWebModel(web => { web.AddTreeViewSettings(treeViewSettings); }); DeployModel(model); }
public static ModelNode AddTreeViewSettings(this ModelNode model, TreeViewSettingsDefinition definition, Action <ModelNode> action) { return(model.AddDefinitionNode(definition, action)); }
public static ModelNode AddTreeViewSettings(this ModelNode model, TreeViewSettingsDefinition definition) { return(AddTreeViewSettings(model, definition, null)); }
public static TModelNode AddTreeViewSettings <TModelNode>(this TModelNode model, TreeViewSettingsDefinition definition, Action <TreeViewSettingsModelNode> action) where TModelNode : ModelNode, IWebModelNode, new() { return(model.AddTypedDefinitionNode(definition, action)); }
public static TModelNode AddTreeViewSettings <TModelNode>(this TModelNode model, TreeViewSettingsDefinition definition) where TModelNode : ModelNode, IWebModelNode, new() { return(AddTreeViewSettings(model, definition, null)); }