Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "webparts/wpTaxonomy.d"

Index

Variables

Const WPTaxonomy

WPTaxonomy: (props: IWPTaxonomyProps) => IWPTaxonomy

The taxonomy webpart should be used when targeting the term store as a datasource.

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

// Create the webpart
WebParts.WPTaxonomy({
    elementId: "my-wpTaxonomy",
    cfgElementId: "my-wpTaxonomy-cfg",
    onRenderTermSetTerms: (wpInfo, terms) => {
        // Render the display element
        wpInfo.el.innerHTML = [
            '<h1>Term Set: ' + wpInfo.TermSetName + '</h1>',
            '<h5>Terms: ' + terms.length + '</h5>'
        ].join('\n');
    }
});

Type declaration

Const WPTaxonomyEditForm

WPTaxonomyEditForm: (props: IWPTaxonomyEditForm) => IWPTaxonomyEditForm

Taxonomy WebPart Edit Form

Type declaration

Generated using TypeDoc