RealGrid2 API
Interface
DocumentTitle

DocumentTitle

GridExportOptions 모델과 GridBase.exportGrid() 를 사용하여 그리드를 내보내기 할 때, Excel 문서의 제목, 부제, 꼬릿말을 설정하기 위한 모델

Signature:

export interface DocumentTitle 

Remarks

GridExportOptions.documentTitle, documentSubtitle, documentTail 에서 사용된다.

Properties

PropertyTypeDescription
heightnumber제목의 전체 높이
messagestring설정할 메시지 (제목) 내용
spaceBottomnumber아래 여백 (행)
spaceTopnumber윗 여백 (행)
styleNamestringtitle에 적용될 className
stylesstring | Partial<CSSStyleDeclaration>셀에 적용할 스타일들
visibleboolean엑셀에 출력 여부

Properties Desc

height

제목의 전체 높이

Type - number

Remarks:

높이를 지정하지 않으면 (-1이면) 1행으로 표시된다.


message

설정할 메시지 (제목) 내용

Type - string


spaceBottom

아래 여백 (행)

Type - number


spaceTop

윗 여백 (행)

Type - number


styleName

title에 적용될 className

Type - string

Remarks:

styleName이 설정되면 styles는 적용되지 않는다.


styles

셀에 적용할 스타일들

Type - string | Partial<CSSStyleDeclaration>

Example:

var styles1 = "color: blue;border: 1px solid red";
var styles2 = {color: "blue", border: "1px solid red"};
gridView.exportGrid({
    type: "excel",
    target: "local",
    documentTitle: {
        message: "Test Document",
        styles: styles1
    },
    documentTail: {
        message: "Test Tail",
        styles: styles2
    }
});

visible

엑셀에 출력 여부

Type - boolean