Previews

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<%= paper_text_container do %>
<%= paper_button(id: "demo-button") { "Button" } %>
<div>
<%= paper_text_strong { "Actions on button:" } %><br>
<%= paper_button(
plain: true,
data: {
controller: "paper",
target: "#demo-button",
action: "paper#disableButton"
}
) { "Disable" } %> |
<%= paper_button(
plain: true,
data: {
controller: "paper",
target: "#demo-button",
action: "paper#enableButton"
}
) { "Enable" } %>
</div>
<% end %>