Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

메모장

TOAST UI Grid Pagination(Server) 본문

JavaScript

TOAST UI Grid Pagination(Server)

doopang 2023. 12. 15. 09:59

1) 일반

const dataSource = {
        api: {
                readData: {
                        url: url,
                        method: 'GET',
                        initParams: $('#searchForm').serializeObject()
                }
        }
}

let pageGrid = new tui.Grid({
    data: dataSource,
});

 

2) 페이지 제어

const dataSource = {
        api: {
                readData: {
                        url: url,
                        method: 'GET'
                }
        },
        initialRequest: false // set to true by default
}

let pageGrid = new tui.Grid({
    data: dataSource,
});

pageGrid.readData(1, $('#searchForm').serializeObject());

'JavaScript' 카테고리의 다른 글

Vue jQuery 플러그인 설정  (0) 2024.04.17
Vue Store  (0) 2023.12.26
Vue props, emit  (0) 2023.11.21
TOAST UI Grid Pagination Using Callbacks  (0) 2023.09.16
Vue vee-validate  (0) 2023.03.14