x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="Polaris-PageActions"> <div class="Polaris-LegacyStack Polaris-LegacyStack--distributionTrailing Polaris-LegacyStack--spacingTight"> <div class="Polaris-LegacyStack__Item"> <div class="Polaris-ButtonGroup"> <div class="Polaris-ButtonGroup__Item"> <button type="button" data-controller="polaris-button" class="Polaris-Button Polaris-Button--destructive"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Delete </div> </span> </button> </div> </div> </div> <div class="Polaris-LegacyStack__Item"> <button type="button" data-controller="polaris-button" class="Polaris-Button Polaris-Button--primary"> <span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Save </div> </span> </button> </div> </div></div>
1
2
3
4
<%= polaris_page_actions do |actions| %> <% actions.with_primary_action { "Save" } %> <% actions.with_secondary_action(destructive: true) { "Delete" } %><% end %>
No notes provided.
No params configured.