mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-16 12:38:13 +00:00
DSS-5869 Adds Component: dataset-sample
This commit is contained in:
parent
d672599824
commit
ad6764ae26
4
wherehows-web/app/components/dataset-sample.js
Normal file
4
wherehows-web/app/components/dataset-sample.js
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import Ember from 'ember';
|
||||||
|
|
||||||
|
export default Ember.Component.extend({
|
||||||
|
});
|
||||||
26
wherehows-web/app/templates/components/dataset-sample.hbs
Normal file
26
wherehows-web/app/templates/components/dataset-sample.hbs
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{{#if hasSamples}}
|
||||||
|
{{#if isPinot}}
|
||||||
|
<table id="pinotsampletreegrid" class="tree table table-bordered dataset-detail-table">
|
||||||
|
<thead>
|
||||||
|
<tr class="results-header">
|
||||||
|
{{#each columns as |column|}}
|
||||||
|
<th class="col-xs-2">{{column}}</th>
|
||||||
|
{{/each}}
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{{#each samples as |sample|}}
|
||||||
|
<tr>
|
||||||
|
{{#each sample as |r|}}
|
||||||
|
<td class="wrap-all-word">{{r}}</td>
|
||||||
|
{{/each}}
|
||||||
|
</tr>
|
||||||
|
{{/each}}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{else}}
|
||||||
|
<div id="datasetSampleData-json-human" class="table-responsive"></div>
|
||||||
|
{{/if}}
|
||||||
|
{{else}}
|
||||||
|
<p>Sample data is not available</p>
|
||||||
|
{{/if}}
|
||||||
Loading…
x
Reference in New Issue
Block a user