2014-12-07 3 views
0

편집 가능한 그리드 그리드에서 ui 선택 드롭 다운을 사용하려고합니다. 이 내 편집 가능한 셀 서식 같은 모습입니다 : - 그러나각도 그리드에서 각도로 선택

editableCellTemplate: "<ui-select ng-model=\"COL_FIELD\" ng-class=\"'colt' + col.index\" theme=\"bootstrap\"><match placeholder=\"Choose client Account..\"></match><choices repeat=\"client in clients | filter: $select.search\"><div ng-bind-html=\"client.clientAccount | highlight: $select.search\"></div></choices></ui-select>" 

, 내가 클래스에 선택된 값을 결합 할 수없는 나는, 내 콘솔에 다음과 같은 오류를 얻고있다

ng-class=\"'colt' + col.index\"

: 다음에 나오는 HTML이 생성

Error: [$parse:syntax] Syntax Error: Token '{' is an unexpected token at column 20 of the expression ['colt' + col.index {open: $select.open}] starting at [{open: $select.open}].

가 될 때 :

기본적으로 HTML은 ng-class = " 'colt'+ col.index {open : $ select.open}"으로 생성되고 중괄호는 구문 오류를 생성합니다 ..

누구나 비슷한 문제에 직면 했습니까?

답변

0

'을 추가해야합니다.'; 이후 '콜트'+ col.index 표현

관련 문제