-
Notifications
You must be signed in to change notification settings - Fork 48
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
Nuxt.js usage example #48
Comments
plugins/vue-isotope.js
if using vue-imagesLoaded for images
nuxt.config.js
index.vue
|
why should we specify ssr:false? |
@AndrewBogdanovTSS Its to turn off Server side rendering. Looks like this package doesn't support SSR. |
@vinkodlak Thanks for the example. I got it to work with Nuxt thanks to your example, but now I'm stuck again when trying to add a filter method... index.vue
I've tried multiple different methods to try to get this working, I can't seem to figure out how to filter/arrange/sort the isotope once it is created. Could somebody give a simple example for Nuxt? |
I wasn't able to make filtering work with Nuxt :-/ I ended up using the regular isotope-layout npm package instead, and got it working right away. But still very interested if anyone has an example with vueisotope. |
@Meuss follow all steps that @vinkodlak did and do what I have done in one of my projects like here:
|
Hey @miaaw , I actually did not register the isotope-layout plugin correctly either. I ended up directly using the package in the page I was using. This is probably bad practice (I'm new to Nuxt), but I got it working easily, something like this: page.vue:
I hope this helps! |
@syed-haroon Thanks for your example. I'm gonna try to get vueisotope running again. |
Please help! how to define dynamic function for categories in getFilterData:{ ... } ? |
Doesn't work for me |
Thanks @vinkodlak #48 (comment) and @Meuss #48 (comment), your methods works! |
Hi, I am also trying to use with Nuxt. I'm trying the basic SPA, not SSR as mentioned elsewhere in this thread. I tried modifying the basic example from the docs, so that it would work with import/export statements. Some of the isotope functionality is working, but I am having issues with the v-model inputs and how the DOM reactivity is updating. If I click on a person cell and enter a new id number in the input field, instead of filtering and resorting by that new id, it is somehow creating a new cell for every keystroke. So for example if a person has an id of 5, if I click on that and enter "55", then it keeps 5 and adds another cell with 55. Likewise, if I have 55 in the field and delete the input value, the previously populated people/id cells remain. I am new to Vue so I'm not sure if I have set up the components correctly, or if there is a bug. I have my modified example here. Also, I'm not sure if this has to do with the problem, but I was confused by the docs |
yo guys i think it dosent work with nuxt 3 but i am trying to use it with nuxt 3 although its not working could you guys help me |
|
Please, add Nuxt.js setup example in the documentation getting started section
The text was updated successfully, but these errors were encountered: