Skip to content

Commit

Permalink
allow visualizations to have full width editor
Browse files Browse the repository at this point in the history
Backports PR #10175

**Commit 1:**
allow visualizations to hide sidebar editor

* Original sha: ebd3926
* Authored by ppisljar <[email protected]> on 2017-02-03T09:51:12Z

**Commit 2:**
fixing styles

* Original sha: 10d6cff
* Authored by ppisljar <[email protected]> on 2017-02-03T14:37:54Z

**Commit 3:**
fixing broken html

* Original sha: 7a6aa89
* Authored by ppisljar <[email protected]> on 2017-02-03T15:00:45Z
  • Loading branch information
elastic-jasper committed Feb 6, 2017
1 parent 932b787 commit 0810eff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core_plugins/kibana/public/visualize/editor/editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,14 @@

<div class="vis-editor-content">

<div class="collapsible-sidebar" ng-if="chrome.getVisible()">
<vis-editor-sidebar class="vis-editor-sidebar"></vis-editor-sidebar>
<vis-editor-vis-options ng-if="vis.type.fullEditor" vis="vis" saved-vis="savedVis" ui-state="uiState"
class="vis-editor-full-options"></vis-editor-vis-options>

<div class="collapsible-sidebar" ng-if="!vis.type.fullEditor && chrome.getVisible()" >
<vis-editor-sidebar class="vis-editor-sidebar"></vis-editor-sidebar>
</div>

<div class="vis-editor-canvas" ng-class="{ embedded: !chrome.getVisible() }">
<div class="vis-editor-canvas" ng-if="!vis.type.fullEditor" ng-class="{ embedded: !chrome.getVisible() }">
<visualize
vis="vis"
render-counter
Expand All @@ -87,5 +90,6 @@
search-source="savedVis.searchSource">
</visualize>
</div>

</div>
</visualize-app>
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@
}
}

.vis-editor-full-options .visualization-options {
display: flex;
flex-direction: column;
flex: 1 0 auto;
padding: 0px;
}

.vis-editor-agg {
.flex-parent();

Expand Down
1 change: 1 addition & 0 deletions src/ui/public/vis/vis_type.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default function VisTypeFactory(Private) {
this.schemas = opts.schemas || new VisTypeSchemas();
this.params = opts.params || {};
this.requiresSearch = opts.requiresSearch == null ? true : opts.requiresSearch; // Default to true unless otherwise specified
this.fullEditor = opts.fullEditor == null ? false : opts.fullEditor;
this.implementsRenderComplete = opts.implementsRenderComplete || false;
}

Expand Down

0 comments on commit 0810eff

Please sign in to comment.