<b-table> transitions
See original GitHub issueHello,
is there a possibility to get vue´s list-transitions working on table rows of the <b-table>
component?
I tried to work around by using the <b-list-group>
component instead combined with the <transition-group>
and it “transitions” like a charm, but the big downside of it is that the columns of the grid inside the <list-group-items>
don´t get align to each other.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Transition Table | OBS Forums
Transition Table, regardless of their actually bugs, works really good if you have something like 5 scenes. In my case, I have more...
Read more >Transition Table - Javatpoint
The transition table is basically a tabular representation of the transition function. It takes two arguments (a state and a symbol) and returns...
Read more >State-transition table - Wikipedia
In automata theory and sequential logic, a state-transition table is a table showing what state a finite-state machine will move to, based on...
Read more >Example Transition Table
A transition table shows the transitions between states for each input character. Here is a finite automaton and a table that shows its...
Read more >Transition Table in Automata - GeeksforGeeks
Transition Table : Transition function(∂) is a function which maps Q * ∑ into Q . Here 'Q' is set of states and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ddweber Funny as I was just wondering about it today 😃 I’m not sure if this can be done with transitions, so I tried another approach that seems to work as expected (I have just implemented it a few mins ago with no real testing) =>
considering a transition on a table row for an added item, the “_rowVariant” property can be added to the newly created item (as an objet of course). The documentation mentions a few supported values, but the actual effect is a wrapping
<tr>
with a “table-[success, danger, etc.]” class.So, instead of setting
"_rowVariant":"success"
, for instance, I’ve just tried"_rowVariant":"added-row"
, which procuced a “table-added-row” class on the wrapping<tr>
.From there, I just used the following css to play a bit with this setup and check the behaviour (class names/paths must seem overkill but this is to ensure that the values will override the default ones properly):
This works in the latest Chrome (Windows), I have not checked on any other browser/platform yet.
Now, this would not be enough, as this class should be removed from the new item once the animation is over (thanks to an “animationend” event listener).
I hope this helps, please let me know your thoughts on this.
Simplest thing would be to add a custom class to the table (via
table-class
prop), and in that class target thetbody > tr
elements, and addtransition: background
, and then adjust the_rowVariant
to change the row’s color (or usetbody-tr-class
prop, using a method, to change the two’s color.