nhn / tui.grid

🍞🔡 The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
http://ui.toast.com/tui-grid/
MIT License
2.42k stars 394 forks source link

initialRequest: false인데 그리드 인스턴스 생성시 데이터 소스가 실행되는 증상 #1878

Open roto1212 opened 1 year ago

roto1212 commented 1 year ago

Summary initialRequest: false인데 그리드 인스턴스 생성시 데이터 소스가 실행되는 증상

Screenshots If applicable, add screenshots to help explain your question.

const reservationList = {
  api: {
    initialRequest: false, 
    readData: {
      url: url,
      method: 'GET',
      initParams: searchObj,
    }
  },
  contentType: 'Application/json'
};

const reservationGrid = new tui.Grid({
  el: document.getElementById('grid'),
  columns: [],
  scrollX: true,
  scrollY: true,
  rowHeaders: ['rowNum'],
  data: reservationList,
});

Version Write the version of the grid you are currently using. TOAST UI Grid @version 4.21.8 | Fri Feb 17 2023 @author NHN Cloud. FE Development Lab @license MIT

Additional context

roto1212 commented 1 year ago

아 ㅋㅋ 해결했습니다 ㅜ, initialRequest 위치가 잘못되었네요 ㅜ 삭제좀 ㅜㅜ