StatusLineId
에 따라 글리프콘을 변경하려하지만 글리프콘이 전혀 표시되지 않습니다. 내가 도대체 뭘 잘못하고있는 겁니까?상태에 따라 부트 스트랩 글리프 아이콘이 변경됩니다.
HTML 코드 :
<div>
<div id="status-icon" data-bind="visible: statusIcon" style="float:left;width:30px;">
<span class="glyphicon"></span>
</div>
</div>
JS 기능
function statusIcon() {
if (StatusLineId == 1) {
$("#status-icon").find(".glyphicon").addClass("glyphicon-remove");
}
else if (StatusLineId == 11) {
$("#status-icon").find(".glyphicon").addClass("glyphicon-chevron-up");
}
else {
$("#status-icon").find(".glyphicon").addClass("glyphicon-flash");
}
}
바이올린을 게시 할 수 있습니까? – arnabkaycee