Sha256: 5e06352fd046ff90feb402365543886f0bc79d3ffff22f85b5e0571bb665b419
Contents?: true
Size: 1.79 KB
Versions: 1578
Compression:
Stored size: 1.79 KB
Contents
<%= pb_form_with(scope: :example, url: "", method: :get) do |form| %> <% treeData = [{ label: "Power Home Remodeling", value: "Power Home Remodeling", id: "powerhome1", expanded: true, children: [ { label: "People", value: "People", id: "people1", children: [ { label: "Talent Acquisition", value: "Talent Acquisition", id: "talent1", }, { label: "Business Affairs", value: "Business Affairs", id: "business1", children: [ { label: "Initiatives", value: "Initiatives", id: "initiative1", }, { label: "Learning & Development", value: "Learning & Development", id: "development1", }, ], }, { label: "People Experience", value: "People Experience", id: "experience1", }, ], }, { label: "Contact Center", value: "Contact Center", id: "contact1", children: [ { label: "Appointment Management", value: "Appointment Management", id: "appointment1", }, { label: "Customer Service", value: "Customer Service", id: "customer1", }, { label: "Energy", value: "Energy", id: "energy1", }, ], }, ], }] %> <%= form.multi_level_select :example, props: {id: "with-form-multi-level-select", tree_data: treeData, return_all_selected: true, margin_bottom: "sm" } %> <%= form.actions do |action| %> <%= action.button props: { type: "submit", text: "Submit", variant: "primary", margin_top: "lg" } %> <% end %> <% end %>
Version data entries
1,578 entries across 1,578 versions & 2 rubygems