Forum Discussion

Americo Perez's avatar
Americo Perez
Iron Contributor
May 18, 2019

Can I do this with SPFx extensions?

Hi,

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

Americo

  • Beau Cameron's avatar
    Beau Cameron
    May 23, 2019

    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.

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


    • Americo Perez's avatar
      Americo Perez
      Iron Contributor

      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. 

       

       

      Best regards

      Americo

      • Beau Cameron's avatar
        Beau Cameron
        MVP

        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.

Resources