Sha256: 0b1f5ff86b7271b2ce47077c2f4474b10aa693453df32f6c148ba0e7121cc2e6
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
<%= content_tag(:div, aria: object.aria, class: object.classname + " " + object.error_class, data: object.data, id: object.id) do %> <% if !object.hide_label %> <%= pb_rails("caption", props: { text: object.label }) %> <% end %> <div class="input_wrapper"> <input autocomplete="off" id="<%= object.picker_id %>" name="<%= object.name %>" <%= object.required ? required="required" : ''%> /> <% if object.error %> <%= pb_rails("body", props: { status: "negative", text: object.error }) %> <% end %> </div> <%= javascript_tag do %> document.addEventListener("DOMContentLoaded", () => { datePickerHelper({ defaultDate: "<%= object.default_date %>", disableDate: <%=raw object.disable_date %>, disableRange: <%=raw object.disable_range.to_json %>, disableWeekdays: <%=raw object.disable_weekdays %>, format: "<%= object.format %>", maxDate: "<%= object.max_date %>", minDate: "<%= object.min_date %>", mode: "<%= object.mode %>", pickerId: "<%= object.picker_id %>", propModel: "rails" }) }) <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
playbook_ui-6.1.0.pre.alpha5 | app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb |
playbook_ui-6.1.0.pre.alpha4 | app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb |