Added initial target options menu.

This commit is contained in:
Alexander Zobnin
2016-01-24 22:52:19 +03:00
parent 96602e2811
commit 38f8e04d22
2 changed files with 19 additions and 0 deletions

View File

@@ -173,6 +173,9 @@
class="input-large tight-form-input" class="input-large tight-form-input"
ng-style="target.item.style"> ng-style="target.item.style">
</li> </li>
<li class="tight-form-item query-keyword">Options</li>
<li class="dropdown" dropdown-typeahead="optionsMenu" dropdown-typeahead-on-select="addSelectPart(selectParts, $item, $subItem)">
</li>
<!-- Scale --> <!-- Scale -->
<!-- <li class="tight-form-item" ng-hide="target.mode == 2"> <!-- <li class="tight-form-item" ng-hide="target.mode == 2">

View File

@@ -17,6 +17,22 @@ define([
$scope.targetLetters = targetLetters; $scope.targetLetters = targetLetters;
$scope.metric = {}; $scope.metric = {};
$scope.optionsMenu = [
{text: "Transformations", submenu: [
{text: "groupBy", value: null},
{text: "scale", value: null}
]},
{text: "Aggregations", submenu: [
{text: "sum", value: null},
{text: "average", value: null},
{text: "min", value: null},
{text: "max", value: null}
]},
{text: "Alias", submenu: [
{text: "set alias", value: null},
]},
];
// Load default values // Load default values
var targetDefaults = { var targetDefaults = {
mode: 0, mode: 0,