Custom Table Layout
how can i get the enable column in the middle of the both first column and the manage button
17 Replies
Could you specify? I see 3 columns: Payment Gateway, Enable and the action column. Where do you wanna put the Enable column?
I think he wants the enable column to be centered.
yes
Ah, you could try
columnSpan()
ok bro
or
alignCenter
I never used both of them, but they might helpin the enable column
doesn't exist on v2
bro it doesn't work like late me explain
the table take only two column one payment gateway and another one is enable and the third one it is action button i edit that
like an button so i wnat all of them should be centered
like the enable column should appear in middle of the paymentgateway and manage button
Are you using v2 or v3?
v2 bro
bro i override the css of that table and change the width according to my requirement
i know it is not a right way but that's how i get my requirement
sorry, can't help with v2 :/ and docs don't help me helping u
maybe one of the core team can help you with that. let's wait a little longer.
So you can use
->alignCenter()
or
->extraAttributes(['class' => 'my-width-class'])
and one more thing the enable table header and the toogle button also not align ?
Need a screenshot to understand what you mean
Already posted I want the toggle button column should be in middle of first column and the manage button
The only way to do this would be by setting explicit widths on your table columns with css. That’s just how tables work in html. It has nothing to do with Filament.