playbook_ui_docs 12.24.0.pre.alpha.railsmultilevelimprovements741 → 12.24.0.pre.alpha.railsmultilevelimprovements742

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e4cd3f4c4b3ce5224384f2c2f94f05a37eda9717d2c869ab33fd2b43b10e07f
4
- data.tar.gz: 87db98b502823dee605df1f66d637b796d5a4a0a99bb4f0264ebeba70bf744dc
3
+ metadata.gz: ada80e9f4a4d796adf16b7172fb482b0fa81a3a744ac644f62687e8da8e9ebb5
4
+ data.tar.gz: 1b349202edee136ad26bed45aa1842ade980e39088ce8ab581ca33ec7d7fa8d6
5
5
  SHA512:
6
- metadata.gz: 9f3f32ae16620dd45cb7c876099dd5ccab9851905d049ad5d70a9fd8ee3a9ef2287444cc82d6dfab423e64c04b82cbac0d6612af51eb327058aad788f5d34f55
7
- data.tar.gz: 2602e6f5047f241fded58ccaf9ee660fac401e4dc180b9d557e3902e10d1d8af7c1c8e59a71d960b9f35066a5a5dc886fa134778519a027ee02125146d937ba1
6
+ metadata.gz: 45c366db5c01e9c3ee080dfcdab9128dd4695ba33da0e01d92658de86884ea7c8a2c44db001d69e22dbf291a76c777118a96512d7169d22a38fee7674b4ed815
7
+ data.tar.gz: c3cd22e17a2bcfacaa8152bd8974eda83b30fe8153edfa2d82aa35b2745dd2715a0970cc0393f34d95c13e280431bad2beb84242e0964ccfd54ec27d11ee1cd1
@@ -64,9 +64,9 @@
64
64
  }] %>
65
65
 
66
66
 
67
- <%= pb_rails("multi_level_select", props: {
68
- id: "default-multi-level-select",
69
- tree_data:treeData
70
- }) %>
67
+ <%= pb_rails("multi_level_select", props: {
68
+ id: "default-multi-level-select",
69
+ tree_data:treeData
70
+ }) %>
71
71
 
72
72
 
@@ -0,0 +1,72 @@
1
+ <%= pb_form_with(scope: :example, url: "", method: :get) do |form| %>
2
+
3
+ <% treeData = [{
4
+ label: "Power Home Remodeling",
5
+ value: "Power Home Remodeling",
6
+ id: "powerhome1",
7
+ expanded: true,
8
+ children: [
9
+ {
10
+ label: "People",
11
+ value: "People",
12
+ id: "people1",
13
+ children: [
14
+ {
15
+ label: "Talent Acquisition",
16
+ value: "Talent Acquisition",
17
+ id: "talent1",
18
+ },
19
+ {
20
+ label: "Business Affairs",
21
+ value: "Business Affairs",
22
+ id: "business1",
23
+ children: [
24
+ {
25
+ label: "Initiatives",
26
+ value: "Initiatives",
27
+ id: "initiative1",
28
+ },
29
+ {
30
+ label: "Learning & Development",
31
+ value: "Learning & Development",
32
+ id: "development1",
33
+ },
34
+ ],
35
+ },
36
+ {
37
+ label: "People Experience",
38
+ value: "People Experience",
39
+ id: "experience1",
40
+ },
41
+ ],
42
+ },
43
+ {
44
+ label: "Contact Center",
45
+ value: "Contact Center",
46
+ id: "contact1",
47
+ children: [
48
+ {
49
+ label: "Appointment Management",
50
+ value: "Appointment Management",
51
+ id: "appointment1",
52
+ },
53
+ {
54
+ label: "Customer Service",
55
+ value: "Customer Service",
56
+ id: "customer1",
57
+ },
58
+ {
59
+ label: "Energy",
60
+ value: "Energy",
61
+ id: "energy1",
62
+ },
63
+ ],
64
+ },
65
+ ],
66
+ }] %>
67
+
68
+ <%= form.multi_level_select :example, props: {id: "with-form-multi-level-select", tree_data: treeData } %>
69
+ <%= form.actions do |action| %>
70
+ <%= action.button props: { type: "submit", text: "Submit", variant: "primary", margin_top: "lg" } %>
71
+ <% end %>
72
+ <% end %>
@@ -2,6 +2,7 @@ examples:
2
2
  rails:
3
3
  - multi_level_select_default: Default
4
4
  - multi_level_select_return_all_selected: Return All Selected
5
+ - multi_level_select_with_form: With Form
5
6
 
6
7
  react:
7
8
  - multi_level_select_default: Default