[Indicators] Add tooltip
Add tooltips to indicators, using a description field from the provided indicator. WTD-608.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<div class='status block'
|
<div class='status block'
|
||||||
|
title="{{ngModel.getDescription()}}"
|
||||||
ng-click='ngModel.configure()'
|
ng-click='ngModel.configure()'
|
||||||
ng-class='ngModel.getClass()'>
|
ng-class='ngModel.getClass()'>
|
||||||
<span class="ui-symbol status-indicator"
|
<span class="ui-symbol status-indicator"
|
||||||
|
|||||||
@@ -85,6 +85,14 @@ define(
|
|||||||
*/
|
*/
|
||||||
getText: function () {
|
getText: function () {
|
||||||
return state.text;
|
return state.text;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Get a longer-form description of the current connection
|
||||||
|
* space, suitable for display in a tooltip
|
||||||
|
* @returns {string} longer summary of connection status
|
||||||
|
*/
|
||||||
|
getDescription: function () {
|
||||||
|
return state.description;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user