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 +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb +36 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +9 -2
- data/dist/playbook-doc.js +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46f8cdecf3a30960ce3728643d11911616e18d3ab972e98b7700473d873ba61f
|
4
|
+
data.tar.gz: 1d4ab6359da9569a13bc9fdff4fa5746893755e9d9c6d1b21985acba26e9d1bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75784b4caaff03129bc3dc7a759272961cc622cfd6e415fcea298172de21ddb71305a6b874a42fa9867984b68d0eaef79307dc9ddf76ca7bdf62b9aa90e36a26
|
7
|
+
data.tar.gz: 70c6ea8131fa2e3969074c9665f8baf97ec9c8b5c27afed95a6c8f2afffcb1cadb3b00f6ac31ead62c1fba99f91202adc6f2f09c7e17dec5c325f3aa90cca02c
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb
ADDED
@@ -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
|
62
|
-
|
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>
|