The taxonomy webpart should be used when targeting the term store as a datasource.
import { WebParts } from "gd-sprest-bs";// Create the webpartWebParts.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'); }}); Copy
import { WebParts } from "gd-sprest-bs";// Create the webpartWebParts.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'); }});
Generated using TypeDoc
Taxonomy WebPart
The taxonomy webpart should be used when targeting the term store as a datasource.