You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
Grid Paging Data and Server Communication Parameters
Version
v3.3.0/tui-pagination
v1.5.0/tui-code-snippet
v4.7.0/tui-grid
Additional context
I entered the data through the resetData command in the form provided by the document, but the data is not visible in the grid. Please confirm.
grid.resetData(json)
var json = {
"result": true,
"data": {
"contents": [{"file_01":"1, "file_02":"2"}],
"pagination": {
"page": 1,
"totalCount": 1
}
}
};
In addition, please check how to put the parameter.
data: {
api: { readData: { url: '/xxx/xxx/xxx', method: 'GET' }}
},
The text was updated successfully, but these errors were encountered:
Thank you for raising an issue.
We will try and get back to you as soon as possible.
Please make sure you have filled out issue respecting our form in English and given us as much context as possible. If not, the issue will be closed or not replied.
js87zz
changed the title
DataSource를 사용하지 않고 데이터 뿌리기
Render the grid without using dataSource
Nov 29, 2019
@hbjang
DataSource has been improved in v4.9.0(#862)
You can pass initParams to get data
// ...
data: {api: {// ...readData: {url: '/api/oper/user',method: 'GET',// define the parameters to pass on communicating with server to get data initiallyinitParams: {params: 'params'}},}}
ajax option is extended
constdataSource={hideLoadingBar: true,api: {readData: {url: '/readData',method: 'get'},createData: {url: '/createData`, method: 'post',// define content type for `json`contentType: 'application/json',// define headers what you wantheaders: {'x-custom-header': 'x-custom-header'}},// define custom serializer if you needserializer(params){returnQs.stringify(params);},// You can also define the option in commoncontentType: 'application/json',headers: {'x-custom-header': 'x-custom-header'}}}
Summary
Grid Paging Data and Server Communication Parameters
Version
v3.3.0/tui-pagination
v1.5.0/tui-code-snippet
v4.7.0/tui-grid
Additional context
I entered the data through the resetData command in the form provided by the document, but the data is not visible in the grid. Please confirm.
grid.resetData(json)
var json = {
"result": true,
"data": {
"contents": [{"file_01":"1, "file_02":"2"}],
"pagination": {
"page": 1,
"totalCount": 1
}
}
};
In addition, please check how to put the parameter.
data: {
api: { readData: { url: '/xxx/xxx/xxx', method: 'GET' }}
},
The text was updated successfully, but these errors were encountered: