openmct/platform/features/layout/res/templates/elements/telemetry.html
Charles Hacskaylo db74e2f84a [Frontend] CSS hooks for staleness
WTD-1172
New .scss file for staleness
Added CSS hooks in templates for staleness
2015-05-06 17:36:55 -07:00

24 lines
627 B
HTML

<div
class="l-fixed-position-text l-telemetry"
ng-class="{ 's-stale': 1 }"
ng-style="{ background: ngModel.fill(), 'border-color': ngModel.stroke(), color: ngModel.color() }"
>
<div
class="l-elem l-title"
ng-show="ngModel.element.titled"
>
{{ngModel.name}}
</div>
<div
class="l-elem l-value s-value"
ng-class="{ 'telem-only': !ngModel.element.titled }"
>
<!-- ng-class is temporarily hard-coded in next element -->
<span
class="l-value-bg s-value-bg"
ng-class="{ 's-limit-lwr': ngModel.value < 0, 's-limit-red' : ngModel.value < 0 }"
>
{{ngModel.value}}
</span>
</div>
</div>