@procore/labs-advanced-export-dropdown
v0.1.2
Published
Export contents of Procore resources
Downloads
74
Maintainers
Keywords
Readme
Advanced Export Dropdown Introduction
AdvancedExportDropdown
is responsible for fetching export options and exporting the contents of a specific resource. For more information on setting this up, please read this document.
Installation
yarn add @procore/labs-advanced-export-dropdown
Dependencies
@procore/core-react
and react
are listed as external peer dependencies. The package will not bundle the code, and requires the app client to provide it as a dependency
. The external peer dep is to assure React Context is consistent in a client's React tree, the child consumers can reference the correct parent provider. If the package uses latest features or bug fixes and a new minimum version of core-react is required, it should be considered a breaking change as the peer dependency version must be met.
Usage
import AdvancedExportDropdown from '@procore/labs-advanced-export-dropdown'
<I18nProvider locale={locale} translations={translations}>
<AdvancedExportDropdown
resource={{
id: 1,
type: 'rfis',
projectId: 1,
}}
/>
</I18nProvider>
Note: The react application must be wrapped with I18nProvider.