Can I do this with SPFx extensions?

Regular Contributor


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?


Best regards


3 Replies

@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?

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. 


Skärmavbild 2019-05-23 kl. 14.28.55.png


Best regards


best response confirmed by Americo Perez (Regular Contributor)

@Americo Perez So you may want to look into Dynamic Data for SPFx and build your solution for this.

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.