05-18-2019 01:44 PM
05-18-2019 01:44 PM
I am wondering if is it possible to create a SPFx extension to show buttons in the body of a page?
I know that there is top and bottom placeholder and I saw som samples showing buttons on the "ribbon" to interact with a list.
What I want to do is create a page containing a list with some views and place some buttons in the same page to choose the views.
Can that be done with extensions or is only webpart that can do that?
05-20-2019 06:19 AM - edited 05-20-2019 06:19 AM
@Americo Perez There isn't a supported method to do what you are trying to do. Users can change list/library views using the web part. What exactly are you trying to achieve that can't be done with the out of the box web parts?
05-23-2019 05:47 AM
Hi @Beau Cameron , As you can see in this image what I am trying to do is place buttons on the same page where the webpart shows the list. The idea of the buttons is to change the list's views. I know that there is a dropdown in the webpart that can do that, but I would like to use this kind of buttons to make clear that the user can browse another views. We have som users that miss the dropdown in the webpart and I think that it could be easer for them if I put some buttons instead.
Each button should be linked to a view and when the user click on them the list should load the selected view.
05-23-2019 06:31 AMSolution
@Americo Perez So you may want to look into Dynamic Data for SPFx and build your solution for this. https://docs.microsoft.com/en-us/sharepoint/dev/spfx/dynamic-data
Personally, I think it's a lot of technical debt to add for something that should be solved with training. While your end users may be missing the drop down, this is likely because they aren't trained enough to work with SharePoint (specifically lists). In my opinion, before investing so much into custom solutions, I would make sure all the end users have solid training workshops for the environments they are working in.