mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Fix tagcloud sync issues, fix #14565 * Remove console.log statement
This commit is contained in:
parent
0cd7cf98fd
commit
54db6e3699
1 changed files with 14 additions and 2 deletions
|
@ -24,9 +24,21 @@ uiModules.get('kibana/table_vis')
|
|||
});
|
||||
slider.noUiSlider.on('change', function () {
|
||||
const fontSize = slider.noUiSlider.get();
|
||||
$scope.vis.params.minFontSize = parseInt(fontSize[0], 10);
|
||||
$scope.vis.params.maxFontSize = parseInt(fontSize[1], 10);
|
||||
$scope.$apply(() => {
|
||||
$scope.vis.params.minFontSize = parseInt(fontSize[0], 10);
|
||||
$scope.vis.params.maxFontSize = parseInt(fontSize[1], 10);
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* Whenever the params change (e.g. by hitting reset in the editor)
|
||||
* set the uislider value to the new value.
|
||||
*/
|
||||
$scope.$watch('vis.params.minFontSize', (val) => {
|
||||
slider.noUiSlider.set([val, null]);
|
||||
});
|
||||
$scope.$watch('vis.params.maxFontSize', (val) => {
|
||||
slider.noUiSlider.set([null, val]);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue