Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "webparts/wpList.d"

Index

Variables

Const WPList

WPList: (props: IWPListProps) => IWPList

The list webpart should be used when targeting a list as a datasource.

import { WebParts } from "gd-sprest-bs";

// Create the webpart
WebParts.WebPart({
    elementId: "my-wpList",
    cfgElementId: "my-wpList-cfg",
    onRenderItems: (wpInfo, items) => {
        // Render the display element
        wpInfo.el.innerHTML = [
            '<h1>List: ' + wpInfo.ListName + '</h1>',
            '<h5>List Items: ' + items.length + '</h5>'
        ].join('\n');
    }
});

Type declaration

Const WPListEditForm

WPListEditForm: (props: IWPListEditForm) => IWPListEditForm

List WebPart Edit Form

Type declaration

Generated using TypeDoc