How can I trigger a modal on primaryAction of <Page> ?

How can I trigger a modal on primaryAction of <Page> ?

Zard
Shopify Partner
12 1 2

I just started to learn Shopify app development, and I don't know much about React, I want to use a modal to add data, so how can I open modal of polaris when I click primary button? the same as shopify does, click export  button, the modal will display. 

 

Zard_3-1692174070454.png

 

Zard_0-1692173920632.png

Zard_2-1692174003811.png

 

 

Replies 0 (0)