Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beforePageMove 이벤트에서 event를 stop할 경우 grid에 데이터는 업데이트 되지 않으나 pagingnation은 이동처리 됩니다. #2021

Open
samsik2ya opened this issue Feb 1, 2024 · 0 comments
Labels

Comments

@samsik2ya
Copy link

tui grid에서 제공하는 beforePageMove 이벤트를 이용중인데, event를 stop하면,
grid 기존 그대로 있으나 grid 하단의 pagingnation이 이동처리가 되는 버그가 있습니다.
수정 부탁드립니다.

Animation
테스트

`

 const grid = new tui.Grid({ 
      el: document.getElementById('grid'),
      data: gridData, 
      rowHeaders: ['rowNum'],
      scrollX: false,
      scrollY: false,
      columns: [ 
        {
          header: 'Name',
          name: 'name'
        },
        {
          header: 'Artist',
          name: 'artist'
        },
        {
          header: 'Type',
          name: 'type'
        },
        {
          header: 'Release',
          name: 'release'
        },
        {
          header: 'Genre',
          name: 'genre'
        }
      ],
      pageOptions: {
        useClient: true,
        perPage: 1
      }
    });
    
    grid.on('beforePageMove', (event)=>{
    		const {page} = event;
        if(page === 2) {
        	event.stop();
        }
    });
``` `





@samsik2ya samsik2ya added the Bug label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant