forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix suggestions in Timelion Visualization. (elastic#11638)
* Refactor timelionExpressionInput to use ng-transclude to accept any type of form control. Fix suggestions in Timelion Visualization. * Fix bug so that users can click on suggestions to select them. * Fix broken reference to input element.
- Loading branch information
Showing
5 changed files
with
75 additions
and
52 deletions.
There are no files selected for viewing
25 changes: 8 additions & 17 deletions
25
src/core_plugins/timelion/public/directives/expression_directive.html
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,23 +1,14 @@ | ||
<div class="timelionSearchInputContainer"> | ||
<input | ||
id="timelionSearchInput" | ||
input-focus | ||
ng-model="sheet" | ||
timelion-expression="{{sheet}}" | ||
placeholder="Expression..." | ||
aria-label="Expression input" | ||
type="text" | ||
class="kuiLocalSearchInput" | ||
ng-keyup="keyUpHandler($event)" | ||
ng-keydown="keyDownHandler($event)" | ||
ng-mouseup="mouseUpHandler()" | ||
ng-blur="blurHandler()" | ||
> | ||
|
||
<div | ||
class="timelionSearchInputContainer" | ||
ng-keyup="keyUpHandler($event)" | ||
ng-keydown="keyDownHandler($event)" | ||
ng-mouseup="mouseUpHandler()" | ||
ng-blur="blurHandler()" | ||
> | ||
<timelion-expression-suggestions | ||
ng-show="functionSuggestions.isVisible" | ||
suggestions="functionSuggestions.list" | ||
selected-index="functionSuggestions.index" | ||
on-click-suggestion="suggestionClickHandler" | ||
on-click-suggestion="onClickSuggestion(suggestionIndex)" | ||
></timelion-expression-suggestions> | ||
</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