How to bind data based on web part added in section?

35 Views Asked by At

I have created a SharePoint Framework web part.

I have dynamically bound boxes under that web part.

I have added that web part to SharePoint modern page one-third right section.

Below is the screenshot of the page section layout. enter image description here

I need to bind boxes based on the web part added in the section,

  1. If the web part is added in the left side (more width) section. Boxes should bind in a below manner, enter image description here
  2. If the web part is added in the right side (less width) section. Boxes should bind in a below manner, enter image description here

In short, if the section is big boxes bind in 3 column layout, and if the section is small boxes bind in 2 column layout.

Can anyone help me with the same?

0

There are 0 best solutions below