Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "webparts/wpListFields.d"

Index

Variables

Const WPListFields

WPListFields: (props: IWPListFieldsProps) => IWPListFields

The list fields webpart should be used when targeting a list and fields 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 WPListFieldsEditForm

WPListFieldsEditForm: (props: IWPListFieldsEditForm) => IWPListFieldsEditForm

List Fields WebPart Edit Form

Type declaration

Generated using TypeDoc