메모장
TOAST UI Grid Pagination Using Callbacks 본문
https://github.com/nhn/tui.grid/blob/master/packages/toast-ui.grid/docs/en/data-source.md
Using Callbacks
grid.on('beforeRequest', function(data) {
// Before sending the request
}).on('response', function(data) {
// When a response has been received regardless of success.
const response = data.xhr.response;
const responseObj = JSON.parse(response);
if (responseObj.result) {
...
}
}).on('successResponse', function(data) {
// When the result is set to true
}).on('failResponse', function(data) {
// When the result is set to false
}).on('errorResponse', function(data) {
// When an error occurs
});
'JavaScript' 카테고리의 다른 글
TOAST UI Grid Pagination(Server) (0) | 2023.12.15 |
---|---|
Vue props, emit (0) | 2023.11.21 |
Vue vee-validate (0) | 2023.03.14 |
FormData 로그 보기 (0) | 2023.02.20 |
Storage (0) | 2023.01.27 |