views/mdc/components/dialog.erb in voom-presenters-0.1.13 vs views/mdc/components/dialog.erb in voom-presenters-0.2.0
- old
+ new
@@ -1,9 +1,12 @@
<%
has_form = comp.components.select{|c| eq(c.type, :form)}.any?
%>
<dialog id="<%= comp.id %>"
- class="mdl-dialog v-js-dialog"
+ <% if comp.tag %>
+ data-input-tag="<%= comp.tag %>"
+ <% end %>
+ class="v-dialog mdl-dialog"
style="<%= "width: #{comp.width}" if comp.width %>
<%= "height: #{comp.height}" if comp.height %>"
>
<% if comp.title %>
<h3 class="mdl-dialog__title"><%= expand_text(comp.title.text) %></h3>
\ No newline at end of file