nhn / tui.grid

🍞🔡 The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
http://ui.toast.com/tui-grid/
MIT License
2.42k stars 394 forks source link

dataSource로 연동된 데이터 기반으로 셀의 색을 변경할 수 있나요? #1881

Open roto1212 opened 1 year ago

roto1212 commented 1 year ago

Summary A clear and concise description of what the question is. 예약 리스트를 불러왔다고 쳤을 때 로우 하나가 예약 한 개이고 하나의 상태를 가집니다. 여기서 하나의 상태는 각 상태마다 컬러 값을 db에 고정적으로 저장해 놨습니다. 이 저장된 컬러 값은 예약 로우와 함께 grid의 data 배열 프로토콜에 맞춰 넣어서 프론트단으로 불러왔어요. data > _attributes에서 셀의 색 변경은 클래스네임 변경으로 색을 변경하는거 같은데 red와 blue 밖에 없는거 같습니다. magenta라는 클래스를 추가해도 반응이 없더군요. dataSource로 연동된 데이터 기반으로 셀의 색을 변경할 수는 없나요?

Screenshots If applicable, add screenshots to help explain your question.

Version Write the version of the grid you are currently using. @version 4.21.8 Additional context Add any other context about the problem here.