GridFooterCollection
그리드 푸터 영역에 관한 콜렉션 모델
Signature:
export interface GridFooterCollection Remarks
그리드의 footer를 표시하거나 여러개의 푸터를 생성하고 관리한다.
GridBase.footers 에서 반환되는 객체이다.
Example
// object
gridView.setFooters({
visible: true,
items:[
{
styleName: 'custom-footer-1'
}, {
styleName: 'custom-footer-2'
}
]
})
// 또는 array형태로 지정
gridView.setFooters([
{
styleName: 'custom-footer-1'
}, {
styleName: 'custom-footer-2'
}
])Properties
| Property | Type | Description |
|---|---|---|
| count | number | 현재 설정된 footer의 갯수를 반환한다. |
| items | GridFooter[] | gridFooter를 설정한다. |
| visible | boolean | 표시여부 |
| visibleCount | number | 현재 설정된 footer중 visible이 true인 footer의 갯수를 반환한다. |
Methods
| Method | Type | Description |
|---|---|---|
| get(index) | get?(index: number): GridFooter; | 해당하는 인덱스의 푸터를 반환한다. |
| getVisible(index) | getVisible?(index: number): GridFooter; | 보여지는 순서에 해당하는 푸터를 가져온다. |
Properties Desc
count
현재 설정된 footer의 갯수를 반환한다.
Type - number
items
gridFooter를 설정한다.
Type - GridFooter[]
visible
표시여부
Type - boolean
visibleCount
현재 설정된 footer중 visible이 true인 footer의 갯수를 반환한다.
Type - number
Methods Desc
get
해당하는 인덱스의 푸터를 반환한다.
[매개변수 목록]
index - number
footer의 index
[반환값] - GridFooter
Remarks:
GridFooter를 반환한다.
getVisible
보여지는 순서에 해당하는 푸터를 가져온다.
[매개변수 목록]
index - number
보여지는 순서 0부터 시작한다.
[반환값] - GridFooter
Remarks:
GridFooter를 반환한다.