Пример #1
0
 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();
 }
Пример #2
0
 public static TModelNode AddClientWebPart <TModelNode>(this TModelNode model, ClientWebPartDefinition definition,
                                                        Action <ClientWebPartModelNode> action)
     where TModelNode : ModelNode, IWebpartHostModelNode, new()
 {
     return(model.AddTypedDefinitionNode(definition, action));
 }
Пример #3
0
 public static ModelNode AddClientWebPart(this ModelNode model, ClientWebPartDefinition definition, Action <ModelNode> action)
 {
     return(model.AddDefinitionNode(definition, action));
 }
Пример #4
0
 public static TModelNode AddClientWebPart <TModelNode>(this TModelNode model, ClientWebPartDefinition definition)
     where TModelNode : ModelNode, IWebpartHostModelNode, new()
 {
     return(AddClientWebPart(model, definition, null));
 }
Пример #5
0
 public static ModelNode AddClientWebPart(this ModelNode model, ClientWebPartDefinition definition)
 {
     return(AddClientWebPart(model, definition, null));
 }