위젯·Grid Reference

와 의 실제 사용법과 데이터 바인딩을 설명합니다.

기본 선언

<geegrid id="userGrid" pageable="true" rows="20" handler="load_users" sort_handler="sort_users">
  <column id="id" type="html" width="80px">ID</column>
  <column id="name" type="html" width="180px" sortable="true" orderBy="name">이름</column>
</geegrid>

데이터 API

grid.setObjectData(rows);
grid.setArrayData(['id', 'name'], rows);
grid.setJsonData(records);

페이징

grid.setTotalCount(count);
grid.setCurrentPage(page);
grid.setViewLength(rows);
grid.makePaging();

자세한 속성·컬럼 타입·이벤트는 API Reference와 문법 명세를 참조하세요.

AI 문서 (한국어) · AI Documentation (English)