playbook_ui_docs 14.10.0.pre.rc.17 → 14.10.0.pre.rc.19

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: a93718948746a9b4e25dcfadebfa0c3b9c0fc74b60a03b384ed32cf2888376a4
4
- data.tar.gz: eb4884e1235ee2debbbf10a8c8d209202c6b3e4eb3b9bf11d210d3aff8bfaa2f
3
+ metadata.gz: 46f8cdecf3a30960ce3728643d11911616e18d3ab972e98b7700473d873ba61f
4
+ data.tar.gz: 1d4ab6359da9569a13bc9fdff4fa5746893755e9d9c6d1b21985acba26e9d1bb
5
5
  SHA512:
6
- metadata.gz: 6b919ef18fe44c29cd6d5453357e88e241cb66b496b43f3fb5db68e26a687d72f9463b1d5ed228c698da9b23e05cc290e06647cbb3d188388a71396ffbd83438
7
- data.tar.gz: 32acd29b9d131bd25008eb491abffe6a923f46092dbcafaf7d082e68b21af7b43084a21739a0e22f63271ca453c0fe020a759696111df80a1e18cb1bb73bd6fa
6
+ metadata.gz: 75784b4caaff03129bc3dc7a759272961cc622cfd6e415fcea298172de21ddb71305a6b874a42fa9867984b68d0eaef79307dc9ddf76ca7bdf62b9aa90e36a26
7
+ data.tar.gz: 70c6ea8131fa2e3969074c9665f8baf97ec9c8b5c27afed95a6c8f2afffcb1cadb3b00f6ac31ead62c1fba99f91202adc6f2f09c7e17dec5c325f3aa90cca02c
@@ -0,0 +1,36 @@
1
+ <% column_definitions = [
2
+ {
3
+ accessor: "year",
4
+ label: "Year",
5
+ cellAccessors: ["quarter", "month", "day"],
6
+ },
7
+ {
8
+ accessor: "newEnrollments",
9
+ label: "New Enrollments",
10
+ },
11
+ {
12
+ accessor: "scheduledMeetings",
13
+ label: "Scheduled Meetings",
14
+ },
15
+ {
16
+ accessor: "attendanceRate",
17
+ label: "Attendance Rate",
18
+ },
19
+ {
20
+ accessor: "completedClasses",
21
+ label: "Completed Classes",
22
+ },
23
+ {
24
+ accessor: "classCompletionRate",
25
+ label: "Class Completion Rate",
26
+ },
27
+ {
28
+ accessor: "graduatedStudents",
29
+ label: "Graduated Students",
30
+ }
31
+ ] %>
32
+
33
+ <%= pb_rails("advanced_table", props: { id: "collapsible_trail", table_data: @table_data, column_definitions: column_definitions }) do %>
34
+ <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
35
+ <%= pb_rails("advanced_table/table_body", props: { table_data: @table_data, column_definitions: column_definitions, collapsible_trail: false }) %>
36
+ <% end %>
@@ -0,0 +1 @@
1
+ `collapsible_trail` is an optional prop that is set to 'true' by default. If set to 'false', it will remove the trail on the left of the rows when subRows are toggled open.
@@ -2,6 +2,7 @@ examples:
2
2
  rails:
3
3
  - advanced_table_beta: Default (Required Props)
4
4
  - advanced_table_beta_subrow_headers: SubRow Headers
5
+ - advanced_table_collapsible_trail_rails: Collapsible Trail
5
6
  - advanced_table_beta_sort: Enable Sorting
6
7
  - advanced_table_custom_cell_rails: Custom Components for Cells
7
8
 
@@ -55,11 +55,18 @@ const TypeaheadWithHighlight = (props) => {
55
55
  marginRight="sm"
56
56
  name={name}
57
57
  size="sm"
58
+ {...props}
58
59
  />
59
60
  </FlexItem>
60
61
  <FlexItem>
61
- <Title size={4}><span dangerouslySetInnerHTML={{ __html: highlighted(name) }} /></Title>
62
- <Body color="light">
62
+ <Title
63
+ size={4}
64
+ {...props}
65
+ >
66
+ <span dangerouslySetInnerHTML={{ __html: highlighted(name) }} /></Title>
67
+ <Body color="light"
68
+ {...props}
69
+ >
63
70
  <span dangerouslySetInnerHTML={{ __html: highlighted(title) }} />{" • "}
64
71
  {territory}
65
72
  </Body>