[Indicators] Add tooltip

Add tooltips to indicators, using a description field
from the provided indicator. WTD-608.
This commit is contained in:
Victor Woeltjen 2014-12-16 13:43:51 -08:00
parent 5c71491549
commit ff8572f055
2 changed files with 9 additions and 0 deletions
platform
commonUI/general/res/templates
persistence/src

@ -1,4 +1,5 @@
<div class='status block'
title="{{ngModel.getDescription()}}"
ng-click='ngModel.configure()'
ng-class='ngModel.getClass()'>
<span class="ui-symbol status-indicator"

@ -85,6 +85,14 @@ define(
*/
getText: function () {
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;
}
};