mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[table_vis] updated file names and applied some basic style
This commit is contained in:
parent
704e99d53a
commit
020d4080ec
6 changed files with 15 additions and 8 deletions
|
@ -3,22 +3,22 @@ define(function (require) {
|
|||
var TemplateVisType = Private(require('plugins/vis_types/template/template_vis_type'));
|
||||
var Schemas = Private(require('plugins/vis_types/_schemas'));
|
||||
|
||||
require('plugins/table_vis/table');
|
||||
require('plugins/table_vis/table_vis');
|
||||
|
||||
return new TemplateVisType({
|
||||
name: 'table',
|
||||
title: 'Data Table',
|
||||
icon: 'fa-table',
|
||||
template: require('text!plugins/table_vis/table.html'),
|
||||
template: require('text!plugins/table_vis/table_vis.html'),
|
||||
schemas: new Schemas([
|
||||
{
|
||||
group: 'metrics',
|
||||
name: 'metrics',
|
||||
name: 'metric',
|
||||
title: 'Metric'
|
||||
},
|
||||
{
|
||||
group: 'buckets',
|
||||
name: 'buckets',
|
||||
name: 'bucket',
|
||||
title: 'Split Column'
|
||||
},
|
||||
{
|
||||
|
|
4
src/kibana/plugins/table_vis/styles/table_vis.less
Normal file
4
src/kibana/plugins/table_vis/styles/table_vis.less
Normal file
|
@ -0,0 +1,4 @@
|
|||
.TableVis {
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
<div ng-controller="TableVisController">
|
||||
<pre>{{ tableData | json }}</pre>
|
||||
</div>
|
3
src/kibana/plugins/table_vis/table_vis.html
Normal file
3
src/kibana/plugins/table_vis/table_vis.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div ng-controller="TableVisController" class="TableVis">
|
||||
<pre>{{ tableData | json }}</pre>
|
||||
</div>
|
|
@ -1,4 +1,6 @@
|
|||
define(function (require) {
|
||||
require('css!plugins/table_vis/styles/table_vis.css');
|
||||
|
||||
require('modules')
|
||||
.get('kibana/table_vis', ['kibana'])
|
||||
.controller('TableVisController', function ($scope, Private) {
|
|
@ -12,7 +12,8 @@ module.exports = {
|
|||
'<%= plugins %>/settings/styles/main.less',
|
||||
'<%= plugins %>/visualize/styles/main.less',
|
||||
'<%= plugins %>/visualize/styles/visualization.less',
|
||||
'<%= plugins %>/visualize/styles/main.less'
|
||||
'<%= plugins %>/visualize/styles/main.less',
|
||||
'<%= plugins %>/table_vis/styles/table_vis.less'
|
||||
],
|
||||
expand: true,
|
||||
ext: '.css',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue