Previews

No matching results.

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
25
26
27
28
29
30
31
32
33
34
35
<div class="Polaris-TextContainer">
<button id="demo-button" onclick="alert('Button clicked')" type="button" data-controller="polaris-button" class="Polaris-Button">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Button
</div>
</span>
</button>
<div>
<span class="Polaris-Text--root Polaris-Text--bodyMd Polaris-Text--semibold">
Actions on button:
</span><br>
<button data-controller="polaris-button polaris" data-target="#demo-button" data-action="polaris#disableButton" type="button" class="Polaris-Button Polaris-Button--plain">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Disable
</div>
</span>
</button> |
<button data-controller="polaris-button polaris" data-target="#demo-button" data-action="polaris#disableButtonWithoutLoader" type="button" class="Polaris-Button Polaris-Button--plain">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Disable without loader
</div>
</span>
</button> |
<button data-controller="polaris-button polaris" data-target="#demo-button" data-action="polaris#enableButton" type="button" class="Polaris-Button Polaris-Button--plain">
<span class="Polaris-Button__Content">
<div class="Polaris-Button__Text">
Enable
</div>
</span>
</button>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<%= polaris_text_container do %>
<%= polaris_button(id: "demo-button", onclick: "alert('Button clicked')") { "Button" } %>
<div>
<%= polaris_text_strong { "Actions on button:" } %><br>
<%= polaris_button(
plain: true,
data: {
controller: "polaris",
target: "#demo-button",
action: "polaris#disableButton"
}
) { "Disable" } %> |
<%= polaris_button(
plain: true,
data: {
controller: "polaris",
target: "#demo-button",
action: "polaris#disableButtonWithoutLoader"
}
) { "Disable without loader" } %> |
<%= polaris_button(
plain: true,
data: {
controller: "polaris",
target: "#demo-button",
action: "polaris#enableButton"
}
) { "Enable" } %>
</div>
<% end %>