AddClass (col)

열의 Type이 Button이고 Button 속성의 값이 Button인 경우, 버튼에 적용할 CSS Class 명을 설정합니다.

Type

string

Options

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

주의 사항

Example

<style>

.RedBold{color:#FF0000; font-weight:700;}
</style>
//특정 열에 "RedBold" 클래스를 적용
options.Cols = [
  
    {Type: "Button", Button: "Button", Name: "sButton", Width: 100},
    // 버튼에 CSS class 적용
    {Type: "Button", Button: "Button", Name: "Dept", AddClass: "RedBold", Width: 100}
    
];

//함수를 이용하여 컬럼에 AddClass적용
sheet.setAttribute({ "col":"sButton", "attr":"AddClass", "val":"RedBold" });

Try it

Read More

Since

product version desc
core 8.0.0.0 기능 추가