All Projects → jquintozamora → react-taxonomypicker

jquintozamora / react-taxonomypicker

Licence: MIT license
A Taxonomy Picker control built with TypeScript for React. Built for use in Office 365 / SharePoint

Programming Languages

HTML
75241 projects
typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to react-taxonomypicker

productivity-tools
List of popular productivity tools for SharePoint
Stars: ✭ 26 (+13.04%)
Mutual labels:  sharepoint, sharepoint-online
sp-metadata
🔬 SharePoint Metadata Tracker
Stars: ✭ 12 (-47.83%)
Mutual labels:  sharepoint, sharepoint-online
node-sp-auth-config
🔧 Config options builder for node-sp-auth (SharePoint Authentication in Node.js)
Stars: ✭ 20 (-13.04%)
Mutual labels:  sharepoint, sharepoint-online
pnp-starterkit-setup
x-platform setup script for the SharePoint Starter Kit
Stars: ✭ 14 (-39.13%)
Mutual labels:  sharepoint, sharepoint-online
Public-Samples
Public samples from speaking engagements and blog posts
Stars: ✭ 29 (+26.09%)
Mutual labels:  sharepoint, sharepoint-online
SharePoint-Security
A Github Repository Created to compliment a BSides Canberra 2018 talk on SharePoint Security.
Stars: ✭ 42 (+82.61%)
Mutual labels:  sharepoint, sharepoint-online
sprest
An easy way to develop against the SharePoint 2013/Online REST api.
Stars: ✭ 72 (+213.04%)
Mutual labels:  sharepoint, sharepoint-online
SPOMod
SharePoint Module for managing lists, items and files. The module is a massive work comprising over 3000 lines of code and 50 SharePoint Online cmdlets for managing: lists list columns list items files content type taxonomy
Stars: ✭ 20 (-13.04%)
Mutual labels:  sharepoint, sharepoint-online
SpRestLib
JavaScript SharePoint REST Web Services Library
Stars: ✭ 114 (+395.65%)
Mutual labels:  sharepoint, sharepoint-online
sharepoint-ruby
A ruby client for Sharepoint's REST API.
Stars: ✭ 60 (+160.87%)
Mutual labels:  sharepoint, sharepoint-online
O365 SPO PowerShellScripts
PowerShell scripts related to SharePoint Online in Microsoft 365
Stars: ✭ 22 (-4.35%)
Mutual labels:  sharepoint, sharepoint-online
gosip
⚡️ SharePoint authentication, HTTP client & fluent API wrapper for Go (Golang)
Stars: ✭ 71 (+208.7%)
Mutual labels:  sharepoint, sharepoint-online
SP Hauler
Copy Libraries and Lists Content between ANY Version of SharePoint (SP2010/SP2013/SP2016/SPOnline).
Stars: ✭ 21 (-8.7%)
Mutual labels:  sharepoint, sharepoint-online
gulp-spsync
Gulp plugin for synchronizing local files with a SharePoint library
Stars: ✭ 57 (+147.83%)
Mutual labels:  sharepoint, sharepoint-online
sp-live-reload
SharePoint pages live reload module for client side development
Stars: ✭ 23 (+0%)
Mutual labels:  sharepoint, sharepoint-online
arctos
Arctos is a museum collections management system
Stars: ✭ 39 (+69.57%)
Mutual labels:  taxonomy
taxid-changelog
NCBI taxonomic identifier (taxid) changelog, including taxids deletion, new adding, merge, reuse, and rank/name changes.
Stars: ✭ 13 (-43.48%)
Mutual labels:  taxonomy
naturtag
Tag your nature photos with iNat taxonomy and observation metadata
Stars: ✭ 20 (-13.04%)
Mutual labels:  taxonomy
virion
The Global Virome in One Network
Stars: ✭ 27 (+17.39%)
Mutual labels:  taxonomy
eBay-node-client
Ebay NodeJS Wrapper
Stars: ✭ 50 (+117.39%)
Mutual labels:  taxonomy

React-TaxonomyPicker

A Taxonomy Picker control built with TypeScript for React based on React-Select. Initially built for use in Office 365 / SharePoint.

React-Taxonomy-Picker-gif

npm version NSP Status Code Climate GitHub license PRs Welcome Greenkeeper badge codecov

NPM

DEMO

https://jquintozamora.github.io/react-taxonomypicker

Features

  • Retrieve Terms from a Term Set by Term Set GUID.
  • Support for large Term Set using Async mode
    • Configurable via termSetCountMaxSwapToAsync property
  • Use SP.Taxonomy.js
  • Use Promise (polyfill it if needed IE)

Features not supported

  • Add new Terms (Open TermSets)

Scenarios supported

Scenarios not supported

  • SharePoint Provider-hosted app
  • Other environment in which we are not allowed to use JSOM
  • Add new terms to the Taxonomy Store (specific for get terms by now)

Installation

Steps to use react-taxonomypicker in your React project

1.Install from NPM

npm install --save react-taxonomypicker

2. Import and use in your application

import TaxonomyPicker from "react-taxonomypicker";
// Include its styles in you build process as well
import "react-taxonomypicker/dist/React.TaxonomyPicker.css";

3. Usage

Mock / Local mode

Don't configure termSetGuid and load the options from defaultOptions object.

<TaxonomyPicker
  name="Language"
  displayName="Language"
  defaultOptions={[
    { label: "English", value: "f50249b6-310d-43b6-aaa6-f0cb46d851bf", path: "Finance and Corporate;Reporting" },
    { label: "Spanish", value: "237ca323-1ed8-4199-a49b-a9f7ce4256bf", path: "Finance and Corporate" },
    { label: "German", value: "44024c7e-f738-4755-90e1-15866327c806", path: "Reporting" },
    { label: "Italian", value: "65f67491-bdca-491a-84fa-f6fd913f40fa", path: "" },
  ]}
  multi
/>
Show path as label
<TaxonomyPicker
  name="Language"
  displayName="Language"
  defaultOptions={[
    { label: "English", value: "f50249b6-310d-43b6-aaa6-f0cb46d851bf", path: "Finance and Corporate;Reporting" },
    { label: "Spanish", value: "237ca323-1ed8-4199-a49b-a9f7ce4256bf", path: "Finance and Corporate" },
    { label: "German", value: "44024c7e-f738-4755-90e1-15866327c806", path: "Reporting" },
    { label: "Italian", value: "65f67491-bdca-491a-84fa-f6fd913f40fa", path: "" },
  ]}
  multi
  showPath
/>

SharePoint environment mode

Configure termSetGuid with the desired term set

<TaxonomyPicker
  name="Language"
  displayName="Language"
  termSetGuid="26ebf149-101a-4996-9df2-8179a537350d"
  termSetName="Language"
  termSetCountMaxSwapToAsync={100}
  multi
  showPath
/>

Done

  • Expose as a Module / Global / UMD library
  • Upload to npm
  • Create ES6 sample application for usage
  • Create TypeScript sample application for usage
  • Create SPFx webpart sample for usage
  • Create types and include them with the npm package
  • onPickerChange event handler exposed
  • react-select properties exposed (extends them)
  • termSetCountMaxSwapToAsync property exposed to choose between Sync / Async modes
  • defaultOptions array exposed to enable input mock data when no termSetGuid configured
  • Create and Expose properties for custom styles

TODOs

  • Create types to allow people include with @types

Want to contribute?

Anyone can help make this project better

License

MIT License

Copyright (c) 2017 - 2018 José Quinto

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].