How to use the @pnp/spfx-property-controls/lib/PropertyFieldMultiSelect.PropertyFieldMultiSelect function in @pnp/spfx-property-controls

To help you get started, we’ve selected a few @pnp/spfx-property-controls examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ispfx / dash / src / webparts / dash / DashWebPart.ts View on Github external
return {
      pages: [
        {
          header: {
            description: strings.PropertyPaneDescription
          },
          groups: [
            {
              groupName: strings.ChartData,
              groupFields: [
                PropertyPaneDropdown('listId', {
                  label: strings.List,
                  options: this.listOptions,
                  disabled: this.listOptionsLoading,
                }),
                PropertyFieldMultiSelect('selectedFields', {
                  key: 'selectedFields',
                  label: strings.SelectedFields,
                  options: this.fieldOptions,
                  disabled: this.fieldOptionsLoading,
                  selectedKeys: this.properties.selectedFields,
                })
              ]
            },
            {
              groupName: strings.ChartSettings,
              groupFields: [
                PropertyPaneDropdown('chartType', {
                  label: strings.ChartType,
                  options: [
                    { key: 'Bar', text: strings.ChartBar },
                    { key: 'HorizontalBar', text: strings.ChartBarHorizontal },

@pnp/spfx-property-controls

Reusable property pane controls for SharePoint Framework solutions

MIT
Latest version published 3 months ago

Package Health Score

70 / 100
Full package analysis