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

Vuetify modifiers behave differently #181

Open
Shinigami92 opened this issue Jun 17, 2019 · 0 comments
Open

Vuetify modifiers behave differently #181

Shinigami92 opened this issue Jun 17, 2019 · 0 comments

Comments

@Shinigami92
Copy link

I'm a little bit confused where this should be handles.
Comming from vuetify-tsx, we have <VDataTable> and the pagination object.

There are some attributes: pagination or pagination.sync introduced by vuetify.
Because jsx/tsx dont support attributes like pagination.sync we have to write pagination_sync but this behaves in another way as pagination.sync :(

To create the exact same behaviour like pagination.sync we need to write

// ...
pagination={this.pagination}
on={{
  'update:pagination': (pagination: Pagination): void => {
    this.pagination = pagination;
  },
}}
// ...

Example can be found here: https://github.com/chanlito/vuetify-tsx/blob/master/src/views/examples/DataTables.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant