mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 01:00:14 -04:00
31 lines
1.4 KiB
HTML
31 lines
1.4 KiB
HTML
<div class="schema-container" ng-if="$ctrl.schema">
|
|
<div class="schema-control">
|
|
<input type="text" placeholder="Search schema..." class="form-control" ng-model="$ctrl.schemaFilter" ng-model-options="{ debounce: 500 }" ng-disabled="$ctrl.isEmpty()" ng-change="$ctrl.splitFilter($ctrl.schemaFilter);">
|
|
<button class="btn btn-default"
|
|
title="Refresh Schema"
|
|
ng-click="$ctrl.onRefresh()">
|
|
<span class="zmdi zmdi-refresh"></span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="schema-browser" vs-repeat vs-size="$ctrl.getSize(table)">
|
|
<div ng-repeat="table in $ctrl.schema | filter:$ctrl.schemaFilterObject track by table.name">
|
|
<div class="table-name" ng-click="$ctrl.showTable(table)">
|
|
<i class="fa fa-table"></i>
|
|
<strong>
|
|
<span title="{{table.name}}">{{table.name}}</span>
|
|
<span ng-if="table.size !== undefined"> ({{table.size}})</span>
|
|
</strong>
|
|
<i class="fa fa-angle-double-right copy-to-editor" aria-hidden="true"
|
|
ng-click="$ctrl.itemSelected($event, [table.name])"></i>
|
|
</div>
|
|
<div uib-collapse="table.collapsed">
|
|
<div ng-repeat="column in table.columns | filter:$ctrl.schemaFilterColumn track by column" class="table-open">{{column}}
|
|
<i class="fa fa-angle-double-right copy-to-editor" aria-hidden="true"
|
|
ng-click="$ctrl.itemSelected($event, [column])"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|