이 필요합니다. 기반 열 값 (완료, 불완전, 진행 중 또는 실패) cellTemplate에 progress-bar-success, progress-bar-info, progress-bar-warning, progress-bar-danger
이 있어야합니다. 우리는 어떻게 그것을 성취 할 수 있습니까? UI 세포 템플릿은 아래 그림과 같이 내가 셀 템플릿을 가지고, AngularJS와 UI 그리드에서 동적 NG 스타일
cellTemplate: " <div class=\"progress margin-top-10\"> <div class=\"progress-bar\" ng-class=\"{progress-bar-success:{{row.entity.status}}==='complete', progress-bar-warning:{{row.entity.status}}==='incomplete', progress-bar-danger:{{row.entity.status}}==='fail'}\" ng-style=\"{width:'{{row.entity.val}}%'}\"></div> </div>",
을 그리고 오류는 다음과 같다 :
angular.js:13920 Error: [$parse:syntax] Syntax Error: Token '-' is unexpected, expecting [}] at column 10 of the expression [{progress-bar-success:complete==='complete', progress-bar-warning:complete==='incomplete', progress-bar-danger:complete==='fail'}] starting at [-bar-success:complete==='complete', progress-bar-warning:complete==='incomplete', progress-bar-danger:complete==='fail'}].
클래스 이름의 하이픈 때문에 오류가 발생했습니다. 당신은 그들을 안으로 감쌀 수 있습니다. – Rishabh
\ 'progress-bar-success \'로 시도했지만 여전히 작동하지 않습니다. – smart987
어떤 오류가 발생하고 있습니까? plunker 링크를 확인하십시오 – Rishabh