public void ClientWebPartSetup(ClientWebPartDefinition wpModel, string webId) { var wpXml = WebpartXmlExtensions .LoadWebpartXmlDocument(BuiltInWebPartTemplates.ClientWebPart) .SetOrUpdateProperty("FeatureId", wpModel.FeatureId.ToString()) .SetOrUpdateProperty("ProductId", wpModel.ProductId.ToString()) .SetOrUpdateProperty("WebPartName", wpModel.WebPartName) .SetOrUpdateProperty("ProductWebId", webId) .ToString(); }
public static TModelNode AddClientWebPart <TModelNode>(this TModelNode model, ClientWebPartDefinition definition, Action <ClientWebPartModelNode> action) where TModelNode : ModelNode, IWebpartHostModelNode, new() { return(model.AddTypedDefinitionNode(definition, action)); }
public static ModelNode AddClientWebPart(this ModelNode model, ClientWebPartDefinition definition, Action <ModelNode> action) { return(model.AddDefinitionNode(definition, action)); }
public static TModelNode AddClientWebPart <TModelNode>(this TModelNode model, ClientWebPartDefinition definition) where TModelNode : ModelNode, IWebpartHostModelNode, new() { return(AddClientWebPart(model, definition, null)); }
public static ModelNode AddClientWebPart(this ModelNode model, ClientWebPartDefinition definition) { return(AddClientWebPart(model, definition, null)); }