playbook_ui_docs 15.1.0.pre.alpha.PLAY251810942 → 15.1.0.pre.alpha.play252710946

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c29c7ceaae69bb8cffa9c44e84556e8b1754de2117dbae465950530f40200d1a
4
- data.tar.gz: 3cadbf9d0717b671f933323bd12326946ee4ce9082654fec7dc5d088f5822790
3
+ metadata.gz: ba871c739875f28a67034dae55927445ea665ca0c4b6908c850bda1bc4305bfb
4
+ data.tar.gz: 90773204906e130d004f324ff0ab9fe1122bf4448c5a74e34bb2e91e8e5770c5
5
5
  SHA512:
6
- metadata.gz: 7e73842e8d7a16cd8b605fff97048db2407892e542e1582cded8e476f2e89268b4108240c725bac385a9badaed4061e928fe59aa2b1da2577c9b5802b111be7f
7
- data.tar.gz: b64201241434e09b83299e686df6fa436e29f6ae23dd6bffcf90aa6a4ff772ea65b1c7104f50265b20a27468d0e94288718c0e611d53546a641ee374707d7e2f
6
+ metadata.gz: a5a0308f5d22f4761dcb2fffaa577580091dfed97208923423149078f53f2c6bca01227c33887ed3db590a31f5d5ca1007fea5ff24909be184468690a53df911
7
+ data.tar.gz: e52fddeaa05e7a315349f954f00e647ab94d58f00973b6b181c1330d668cc7c2a0b26c73d80381948d2552c2dd933f645496f448ddc7fb05d9dc9c4fcd678b1e
@@ -21,6 +21,15 @@
21
21
  ]
22
22
  %>
23
23
 
24
+ <%
25
+ example_typeahead_options = [
26
+ { label: 'Orange', value: '#FFA500' },
27
+ { label: 'Red', value: '#FF0000' },
28
+ { label: 'Green', value: '#00FF00' },
29
+ { label: 'Blue', value: '#0000FF' },
30
+ ]
31
+ %>
32
+
24
33
  <% treeData = [{
25
34
  label: "Power Home Remodeling",
26
35
  value: "Power Home Remodeling",
@@ -88,7 +97,9 @@
88
97
  }] %>
89
98
 
90
99
  <%= pb_form_with(scope: :example, method: :get, url: "", validate: true) do |form| %>
91
- <%= form.typeahead :example_typeahead_validation, props: { data: { typeahead_example2: true, user: {} }, label: true, placeholder: "Search for a user", required: true, validation: { message: "Please select a user." } } %>
100
+ <%= form.typeahead :example_typeahead_validation_rails, props: { data: { typeahead_example2: true, user: {} }, label: true, placeholder: "Search for a user", required: true, validation: { message: "Please select a user." } } %>
101
+ <%= form.typeahead :example_typeahead_validation, props: { options: example_typeahead_options, pills: true, label: "Example Typeahead (React Rendered)", placeholder: "Search for a user", required: true, validation: { message: "Please select a color." } } %>
102
+ <%= form.typeahead :example_typeahead_validation_2, props: { options: example_typeahead_options, pills: true, label: "Example Typeahead 2 (React Rendered)", placeholder: "Search for a user", required: true } %>
92
103
  <%= form.text_field :example_text_field_validation, props: { label: true, required: true } %>
93
104
  <%= form.phone_number_field :example_phone_number_field_validation, props: { label: "Example phone field", hidden_inputs: true } %>
94
105
  <%= form.email_field :example_email_field_validation, props: { label: true, required: true } %>