<FilePicker/> Add properties for default library- & folderPath for <SiteFilePicker/>
See original GitHub issueCategory
- Enhancement
Version
3.1.0
Desired Behavior
It would be great if the <FilePicker/>
could accept a property/properties for setting a default selected library and folder which would apply to the <SiteFilePicker/>
child.
Implementation
I’m up for submitting a Pull Request and I might even take a look into #725 while I’m at it as a multiple file select is applicable for my use case as well.
Right now I’m thinking of just giving a single property named defaultFolderAbsolutePath
(perhaps with a suffix to indicate its intention for the SiteFilesTab) and parse it in the <SiteFilePickerTab/>
constructor for the state variables (and breadcrumb ofc).
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
PropertyFieldFilePicker - @pnp/spfx-property-controls
Site document libraries - tab allows to select a file from the existing site ... Add the file picker property control to the...
Read more >View and edit information about a file, folder, or link in a ...
View information about a file, folder, or link in a document library in Office 365 and edit the information directly in the information...
Read more >How to show the folder path of a file in library views
Insert a new step > select Update file properties. Set the following values for the update file properties step: Site Address: same as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well, this is a bit of a different story then 😊 I would be fine with removing unused variables and even rename variables if the name is not indicative of their purpose and confusing. One thing that I would suggest, is that you do this as a separate PR (using a new branch from dev, not your previous branch) as it’s not directly related to the feature you are implementing and can be submitted as a completely isolated improvement to the code
Please don’t close until the version is released.