1.0.5 • Published 4 years ago
@dlw-digitalworkplace/react-fabric-peoplepicker v1.0.5
delaware Digital Workplace React components
Common React components for use in SharePoint Framework projects which use the Office UI Fabric styling components.
Demo implementation can be found in apps/spfx-demo-app
Submitting pull requests is strongly encouraged 😃. Make sure to read the Contribution guidelines
react-fabric-peoplepicker
A people picker which retrieves its data from the https://github.com/pnp/pnpjs library
Usage
import { PeoplePicker } from "@dlw-digitalworkplace/react-fabric-peoplepicker";
.
.
.
<PeoplePicker label="Demo picker" />
react-fabric-taxonomypicker
A taxonomy picker which provides the user with a hierarchical auto-complete box, as well as a treeview picker. Currently supports:
- Autocomplete input box
- Multilingual support
- Create terms in open term set
- Custom sorting
Usage
import { TaxonomyPicker } from "@dlw-digitalworkplace/react-fabric-taxonomypicker";
.
.
.
<TaxonomyPicker
title="Select your demo data"
absoluteSiteUrl={this.props.absoluteSiteUrl}
label="Demo picker"
termSetId={this.props.termSetId}
rootTermId={this.props.rootTermId}
itemLimit={this.props.itemLimit}
allowAddTerms={true}
lcid={this.props.lcid}
showTranslatedLabels={this.props.showTranslatedLabels}
isLoading={false}
/>
Contributing
- Fork the repository to your local GitHub
- Clone the code
- Create a new branch for your hotfix or feature
- Run
npm install
in the root of the project to install all the dependencies - Run
npm run build
to build the code - Run
npm run start:nb
to run the sample app and test the components in the workbench - Make the code changes
- Stage and commit your changes in the local branch
- Run
rush change
to generate the cange file - Stage and commit the generated change file
- Push all the changes to the remote branch
- Merge the branch created in step 3 to the master branch of your git repo
- Make sure the master branch builds (
npm run build
) Create a pull request to get your changes in the @dlw-digitalworkplace package