他のヒント

凡例の非アクティブなシリーズをマスクするには、3ounary演算子を使用して値を確認します.disabled

<div class="x-legend-container">
    <tpl for=".">
        <div class="x-legend-item {[ values.disabled ? Ext.baseCSSPrefix + 'legend-inactive' : '' ]}">
            <span class="x-legend-item-marker" style="background:{mark};float:left;width:10px;height:10px;"></span>
            <span style="float:left;margin-left:4px;">{name}</span>
        </div>
    </tpl>
</div>
.

必要に応じて

にCSSクラスを追加する場合
x-legend-inactive{
   opacity: 0.5;
}
.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top