How to use the @pnp/spfx-controls-react/lib/ListView.SelectionMode.single function in @pnp/spfx-controls-react

To help you get started, we’ve selected a few @pnp/spfx-controls-react 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 SharePoint / sp-dev-fx-webparts / samples / react-events-dynamicdata / src / webparts / events / components / Events.tsx View on Github external
items={events}
            viewFields={[
              {
                name: 'name',
                displayName: 'Event',
                sorting: true
              },
              {
                name: 'city',
                displayName: 'Location',
                sorting: true,
                minWidth: 100
              }
            ]}
            compact={true}
            selectionMode={SelectionMode.single}
            selection={this._getSelection} />}
      
    );
  }
}