Wondering whether anyone has a good solution for this? Also stuck…
Posts made by johnorford1
QTable Top-Right & Left Alignment Sync
I have a tools in the top left and top right slots of the QTable.
My top left template can grow, I set the class used to “content-start” etc. so as the toolbar height grows, the tools remain fixed to the top of the top left element.
Unfortunately, the top right element does not grow to fill the space also, the right sided tools align in a different way, something like “content-center”.
Is there any way to instruct my top right template element to grow into the space, and align to “content-start” also?
RE: Component Composition
I suppose I was fishing around for a discussion on various ways to get the components working together - must be a pretty common use-case.
My first try is to use Vuex as the middle-man between both components.
This means I can pretty much lift the filter related HTML & JS straight out of the original page and package it up as a component.
Perhaps there are better ways though.
I have a nice (if complicated) custom filter working well with the data-table.
And now I am thinking about putting the filter-related things in their own component.
Could someone sketch a nice way to have the data-table and my new filter component compose / work together?
I have the ‘filter string’ and ‘filter method’ API from the data-table to work with.
Is there any clean way to do this?