Is the Split component for tables busted?
I cannot seem to get this to work following the documentation. In fact, it completely breaks my table presentation (no errors).
Furthermore, the from() method doesn't appear to be having any effect...
Solution:Jump to solution
Sorry maybe I copy/pasted something wrong, but try to wrap the entire columns definition in a
Split
9 Replies
Ah think I figured it out, looks like the split has to go around the entire column definition?
Yeah, not sure - I just want 2 columns to stack on mobile, and can't figure it out. If I put a split, it seems to ruin the entire row:
Yeah, I don't get it. Hours gone - I don't understand the how or why of stack/split. Any combo I come up with completely breaks the table. I was assuming that stack/split can be used like normal columns with a child schema, but that doesn't appear to be the case.
No idea.
Try this
Sorry what am I meant to be doing here? Syntax seems wrong. Are there nested splits?
Solution
Sorry maybe I copy/pasted something wrong, but try to wrap the entire columns definition in a
Split
Cheers @Arnold Schwarzenegger - unfortunately it's not stacking on mobile, as per the docs.
hmm maybe a `from('md') on the entire split?
This is how I use it and it seams to work
Ohhhh... Okay, I think I understand how it's meant to be used now.
The layout's fubar on mobile though π€
You can have nested splits, keep things in one row if you want
If you have a
Split::make
without a from
I think it will keep it in one rowYeah, seems that way. So looks like I'll need multiple splits to lay it out how I want π
thanks, @Arnold Schwarzenegger . Very helpful!