playbook_ui_docs 13.5.0.pre.alpha.play984collapsiblekithidestooltips1203 → 13.5.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a52479a874399aede5baaf0aba7761ba2bc5356a4c5b181a86088e7c13ef96f6
|
4
|
+
data.tar.gz: 48e502ad78059d5db41e0cd873ae0e6f77f92ea560f2e21950f276068f1a6160
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62f934b940778238c163fa0cd2586e2afc364a252492cacf13a1bc6a0e6ec2d368b1f8eb145e85eec156b3ea06aa261350fba93b5e7a22bee47bb20c16520a98
|
7
|
+
data.tar.gz: facc03fa04b8797492b8221b8813924e39886df2c66cb86b2d7126d29fe51b412a7e4c1fb422d6714575ae3eb889ffffd78bc1a290ad594cfb1780e4dd6cbca5
|
@@ -1,32 +1,28 @@
|
|
1
1
|
<%= pb_rails("table", props: { size: "lg"} ) do %>
|
2
2
|
<thead>
|
3
3
|
<tr>
|
4
|
-
<%= pb_rails("table/table_header", props: {
|
5
|
-
text: "Territory",
|
6
|
-
id: "territory",
|
7
|
-
sort_menu: [
|
8
|
-
{ item: "Territory", link: "?sort=territory_desc", active: params["sort"] == "territory_desc", direction: "desc" },
|
9
|
-
{ item: "Territory", link: "?sort=territory_asc", active: params["sort"] == "territory_asc", direction: "asc" }
|
10
|
-
],
|
11
|
-
}) %>
|
12
4
|
<%= pb_rails("table/table_header", props: {
|
13
5
|
id: "name",
|
14
|
-
text: "Full Name",
|
15
6
|
colspan: 2,
|
16
7
|
sort_menu: [
|
17
|
-
{ item: "
|
18
|
-
{ item: "
|
19
|
-
{ item: "Last Name Descending", link: "?sort=lastname_desc", active: params["sort"] == "lastname_desc", direction: "desc" },
|
20
|
-
{ item: "Last Name Ascending", link: "?sort=lastname_asc", active: params["sort"] == "lastname_asc", direction: "asc" }
|
8
|
+
{ item: "Name", link: "?q[sorts]=name+desc", active: false, direction: "desc" },
|
9
|
+
{ item: "Name", link: "?q[sorts]=name+asc", active: true, direction: "asc" },
|
21
10
|
],
|
22
11
|
}) %>
|
23
12
|
<%= pb_rails("table/table_header", props: {
|
24
13
|
text: "Age",
|
25
14
|
id: "age",
|
26
|
-
sort_dropdown: true,
|
27
15
|
sort_menu: [
|
28
|
-
{ item: "Age
|
29
|
-
{ item: "Age
|
16
|
+
{ item: "Age", link: "?q[sorts]=age+desc", active: false, direction: "desc" },
|
17
|
+
{ item: "Age", link: "?q[sorts]=age+asc", active: false, direction: "asc" },
|
18
|
+
],
|
19
|
+
}) %>
|
20
|
+
<%= pb_rails("table/table_header", props: {
|
21
|
+
text: "Territory",
|
22
|
+
id: "territory",
|
23
|
+
sort_menu: [
|
24
|
+
{ item: "Territory", link: "?q[sorts]=territory+desc", active: false, direction: "desc" },
|
25
|
+
{ item: "Territory", link: "?q[sorts]=territory+asc", active: false, direction: "asc" },
|
30
26
|
],
|
31
27
|
}) %>
|
32
28
|
<%= pb_rails("table/table_header", props: { text: "Job Title" }) %>
|
@@ -34,25 +30,25 @@
|
|
34
30
|
</thead>
|
35
31
|
<tbody>
|
36
32
|
<tr>
|
37
|
-
<td>
|
38
|
-
<td>
|
39
|
-
<td>
|
40
|
-
<td>
|
41
|
-
<td>
|
33
|
+
<td>Name 1</td>
|
34
|
+
<td>Name 2</td>
|
35
|
+
<td>Value 3</td>
|
36
|
+
<td>Value 4</td>
|
37
|
+
<td>Value 5</td>
|
42
38
|
</tr>
|
43
39
|
<tr>
|
44
|
-
<td>
|
45
|
-
<td>
|
46
|
-
<td>
|
47
|
-
<td>
|
48
|
-
<td>
|
40
|
+
<td>Name 1</td>
|
41
|
+
<td>Name 2</td>
|
42
|
+
<td>Value 3</td>
|
43
|
+
<td>Value 4</td>
|
44
|
+
<td>Value 5</td>
|
49
45
|
</tr>
|
50
46
|
<tr>
|
51
|
-
<td>
|
52
|
-
<td>
|
53
|
-
<td>
|
54
|
-
<td>
|
55
|
-
<td>
|
47
|
+
<td>Name 1</td>
|
48
|
+
<td>Name 2</td>
|
49
|
+
<td>Value 3</td>
|
50
|
+
<td>Value 4</td>
|
51
|
+
<td>Value 5</td>
|
56
52
|
</tr>
|
57
53
|
</tbody>
|
58
54
|
<% end %>
|
@@ -1,8 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
* `colspan` (number) for setting column span
|
4
|
-
* `sort_menu` accepts sort options as an array of `item` objects.
|
5
|
-
presence of `sort_menu` enables the sort link within the header
|
6
|
-
* `sort_dropdown` (boolean) optionally declares that (true) clicking a header's sort link opens a dropdown of sort options, or (false) each sort link click cycles through available sort_menu items in the order they are passed
|
7
|
-
* passing a valid `colspan` will render sort options within a dropdown by default, without requiring `sort_dropdown` explicitly. Alternatively, the default sort dropdown can be prevented on headers with `colspan` by setting `sort_dropdown: false`, which reverts the column to sorting to multi-click default (each click of the sort link cycles through the available sort_menu items in the order they are passed)
|
8
|
-
* `id` (string) is required for headers that have a dropdown (for popover reference); otherwise they are optional
|
1
|
+
A kit that produces a `<th>` tag. You can also use the `sort_menu` prop to make the header a sortable link, just like <a href="https://playbook.powerapp.cloud/kits/filter#sort-only" target="_blank">our filter kit.</a>
|