私は現在、Nagios Check_mk からアクティブなチェック フィードを受け取り、テキスト ウィジェットに表示するプロジェクトに取り組んでいます。ウィジェットの色を変更しようとしています。ワークショップ ページを操作しています。コーヒー スクリプトで立ち往生しています。値が変更されても効果がないようです。ここに私が持っているものがあります
アラートコーヒー
class Dashing.Alert extends Dashing.Widget
ready: ->
# This is fired when the widget is done being rendered
onData: (data) ->
# Handle incoming data
# You can access the html node of this widget with @node
# Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in.
@accessor 'value', Dashing.AnimatedValue
@accessor 'isTooHigh', ->
@get('value') > 200
アラートscss
.widget-alert {
background: #00ff99;
font-size: 65px;
font-weight: bold;
}
.danger {
background: #ff1a00;
}
他のすべてのファイルは、ワークショップ ページに詳細が記載されているとおりです。どんな助けも大歓迎です。