x
<div class="Polaris-TextContainer">
<button id="demo-button" 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-TextStyle--variationStrong">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#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>
<%= polaris_text_container do %>
<%= polaris_button(id: "demo-button") { "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#enableButton"
}
) { "Enable" } %>
</div>
<% end %>
No notes provided.
No params configured.