playbook_ui_docs 13.2.0.pre.alpha.PLAY986dateTimeRounding1150 → 13.3.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: 90f6896845509edb763de24ac67790c51a4f59d7cefbb44a4e366e8365387e36
4
- data.tar.gz: e3d50fff0e5bf4ac3ec0e7374f7b71e3804e057b77396d355f2e8376d8303eda
3
+ metadata.gz: ecbc690f0e52fa7d926f22f9b8bac019cd3058eb09513360f3e696bf8f2c758a
4
+ data.tar.gz: 71d3b9f89194805f763585f6942c82329724f7703f04bb673c203fdad7410eda
5
5
  SHA512:
6
- metadata.gz: 7df4fd817d0258ae5c6638320a14c37f8bbcfe11b105cce3f1e8da08a35343907839bf5f23b8ff4bab59bf83c2c4783158d450f1ecd1403e0053c1d0e9135b85
7
- data.tar.gz: 762869ca5dd0867b61d5b6e5a0e69769f8684733fb413a4c988096a94ffabe4a9f1d49384b832821584aba0b42ad96b918550db7ef110c1a05da6364327315ce
6
+ metadata.gz: c87eb22d0817fbebf3b290db021c3d4b230d1e5acf4742f1a4669e90d742fb5d25b9f887d2f8d43811e8011461e6ee0019ee3eab5daa6ae1f6b9979cffdea3d0
7
+ data.tar.gz: b161c2c28e641dd141eed86779935db92c1bb615fa772533aa3d381838581d5826cd3eb4cae251cb411724f278e221c415e424aaf6fb62448e2245fd1d5592dd
@@ -0,0 +1,54 @@
1
+ <%= pb_rails("table", props: { size: "lg"} ) do %>
2
+ <thead>
3
+ <tr>
4
+ <%= pb_rails("table/table_header", props: {
5
+ id: "name",
6
+ colspan: 2,
7
+ sort_menu: [
8
+ { item: "Name", link: "?q[sorts]=name+desc", active: false, direction: "desc" },
9
+ { item: "Name", link: "?q[sorts]=name+asc", active: true, direction: "asc" },
10
+ ],
11
+ }) %>
12
+ <%= pb_rails("table/table_header", props: {
13
+ text: "Age",
14
+ id: "age",
15
+ sort_menu: [
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" },
26
+ ],
27
+ }) %>
28
+ <%= pb_rails("table/table_header", props: { text: "Job Title" }) %>
29
+ </tr>
30
+ </thead>
31
+ <tbody>
32
+ <tr>
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>
38
+ </tr>
39
+ <tr>
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>
45
+ </tr>
46
+ <tr>
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>
52
+ </tr>
53
+ </tbody>
54
+ <% end %>
@@ -0,0 +1 @@
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>
@@ -4,6 +4,7 @@ examples:
4
4
  - table_md: Medium
5
5
  - table_lg: Large
6
6
  - table_sticky: Sticky Header
7
+ - table_header: Table Header
7
8
  - table_alignment_row: Row Alignment
8
9
  - table_alignment_column: Column Alignment
9
10
  - table_alignment_shift_row: Shift Row