Sha256: d7caea2749ba70e1c47ddcc89d738aba34ad40944cde5c7e5ceb177fda8e2a20

Contents?: true

Size: 1.74 KB

Versions: 4

Compression:

Stored size: 1.74 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 } %>
  <%= form.actions do |action| %>
    <%= action.button props: { type: "submit", text: "Submit", variant: "primary", margin_top: "lg" } %>
  <% end %>   
<% end %>

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
playbook_ui_docs-12.24.0.pre.alpha.railsmultilevelimprovements749 app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_form.html.erb
playbook_ui-12.24.0.pre.alpha.railsmultilevelimprovements749 app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_form.html.erb
playbook_ui_docs-12.24.0.pre.alpha.railsmultilevelimprovements742 app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_form.html.erb
playbook_ui-12.24.0.pre.alpha.railsmultilevelimprovements742 app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_form.html.erb