This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0bfd0c
commit 298a00e
Showing
9 changed files
with
119 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
<div class="skrubview-wrapper"> | ||
<details> | ||
<summary><h2>Sample</h2></summary> | ||
<details open=""> | ||
<summary> | ||
<h2>Sample</h2> | ||
</summary> | ||
<h3>First 5 rows</h3> | ||
<div class="skrubview-horizontal-scroll"> | ||
{{ summary.head_html | safe }} | ||
</div> | ||
{% set dataframe = summary.head %} | ||
{% set dataframe_id = "{}_head".format(report_id) %} | ||
{% include "dataframe-table.html" %} | ||
<h3>Last 5 rows</h3> | ||
<div class="skrubview-horizontal-scroll"> | ||
{{ summary.tail_html | safe }} | ||
</div> | ||
{% set dataframe = summary.tail %} | ||
{% set dataframe_id = "{}_tail".format(report_id) %} | ||
{% include "dataframe-table.html" %} | ||
</details> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% set table_id = "{}_table".format(dataframe_id) %} | ||
|
||
<div class="skrubview-horizontal-scroll"> | ||
<table class="pure-table pure-table-striped" id="{{ table_id }}"> | ||
<thead> | ||
<tr> | ||
{% for column_name in dataframe.header %} | ||
<th>{{ column_name }}</th> | ||
{% endfor %} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for row in dataframe.data %} | ||
<tr> | ||
{% for value in row %} | ||
<td class="skrubview-table-cell" | ||
data-parent-table-id="{{ table_id }}" | ||
data-cell-value="{{ value.__str__() }}" | ||
data-display-box-id="{{ dataframe_id }}_value_box" | ||
onclick="displayValue(event)"> | ||
{%- if value is not none -%} | ||
{{ value | ellide_string_short }} | ||
{%- endif -%} | ||
</td> | ||
{% endfor %} | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="skrubview-flex"> | ||
<pre class="skrubview-box skrubview-table-value-box" id="{{ dataframe_id }}_value_box" data-shows-placeholder> | ||
Select a cell to display its value | ||
</pre> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters