Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "@types/helper/spCfg.d"

Index

Variables

Const SPConfig

SPConfig: (cfg: ISPConfigProps, webUrl?: string) => ISPConfig

Helper class for creating SharePoint Assets

Example Configuration

let cfg = Helper.SPConfig({
    ListCfg: [
        {
            ListInformation: {
                BaseTemplate: SPTypes.ListTemplateType.GenericList,
                Description: "",
                Title: "My Custom List",
            },
            ViewInformation: [
                {
                    JSLink: "~sitecollection/style library/jslinks/mySolution.js",
                    ViewFields: ["ID", "Title", "InternalFieldName"],
                    ViewName: "All Items",
                    ViewQuery: "<Query></Query>"
                }
            ]
        }
    ]
});

// Install the library
cfg.install();

// Unisntall the library
cfg.uninstall();

Type declaration

Generated using TypeDoc