Class (col)

열에 적용할 사용자 정의 CSS를 설정합니다.
Type : "Button"은 내부 구조상 Class 속성이 적용되지 않으므로, AddClass 속성을 사용해야 합니다.

Type

string

Options

Value Description
string CSS에 정의한 클래스 이름

주의 사항

Example

<style>
/* 글자를 빨간색, 볼드로 표시 */
.RedBold{color:#FF0000; font-weight:700}
</style>

//1. 특정 열(Dept)에 "RedBold" 클래스를 적용
options.Cols = [
    
    {Type: "Text", Name: "Dept", Class: "RedBold", Width: 100},
    {Type: "Text", Name: "sName", Width: 150 }
];

//2. 함수를 이용하여 CSS 적용
sheet.setAttribute({ "col" :"Dept" ,"attr":"Class", "val":"RedBold" });

Try it

Read More

Since

product version desc
core 8.0.0.0 기능 추가