tag-color

속성 타입 : String

Attribute Type : String

지원 타입 : column

Supported Type : column

컬럼의 태그 색상.

이 값은 표준 HTML 컬러 코드로 구성 됩니다:

// 모든 컬럼의 태그 색상을 랜덤하게 지정
select(function(it){
	return it.get("type") == "column";
}).each(function(it){
	var r = parseInt(Math.random()*255);
	var g = parseInt(Math.random()*255);
	var b = parseInt(Math.random()*255);
	var hex = format("#%02X%02X%02X", r, g, b);
	it.set("tag-color", hex);
});
The color of the column tag.

This value is comprised of the standard HTML color code:

// Randomly designated the color of the tag for all columns
select(function(it){
	return it.get("type") == "column";
}).each(function(it){
	var r = parseInt(Math.random()*255);
	var g = parseInt(Math.random()*255);
	var b = parseInt(Math.random()*255);
	var hex = format("#%02X%02X%02X", r, g, b);
	it.set("tag-color", hex);
});

값 얻기

Getter

컬럼의 태그 색상을 얻습니다. HTML 컬러 표현식 형태로 리턴 됩니다.

Gets the tag color of a column. Returns the information in the form of HTML color expression.

컬럼의 태그 색상을 얻습니다. HTML 컬러 표현식 형태로 리턴 됩니다.

Gets the tag color of a column. Returns the information in the form of HTML color expression.

값 지정

Setter

컬럼의 태그 색상을 지정합니다. HTML 컬러 표현식 형태로 지정합니다. 태그 색상을 지우려면 null로 지정합니다.

Specifies the tag color of the table. This information is specified in the form of HTML color expression. If you want to erase the color, sets the value as null.

컬럼의 태그 색상을 지정합니다. HTML 컬러 표현식 형태로 지정합니다. 태그 색상을 지우려면 null로 지정합니다.

Specifies the tag color of the table. This information is specified in the form of HTML color expression. If you want to erase the color, sets the value as null.