Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "webparts/wpSearch.d"

Index

Variables

Const WPSearch

WPSearch: (props: IWPListProps) => IWPSearch

The search webpart extends the list webpart, and includes a filterItems method to return items based on the inputed filter text.

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

// Create the webpart
let wp = WebParts.WebPart({
    elementId: "my-wpSearch",
    cfgElementId: "my-wpSearch-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 WPSearchEditForm

WPSearchEditForm: (props: IWPSearchEditForm) => IWPSearchEditForm

Search WebPart Edit Form

Type declaration

Generated using TypeDoc