how to wrap datatable column

Post Reply
hairi11
Posts: 21
Joined: 18 Apr 2016, 16:13

27 Feb 2017, 03:45

Hi.

How do I wrap data table follow to cell content.

My right action column consist of buttons show a bit wide.

I like the column to fit with both buttons.

Please find the attachment for picture.

Thanks.

/Hairi

Image

User avatar
aragorn
Posts: 2600
Joined: 29 Jun 2013, 12:38

15 Mar 2017, 13:44

Can you please attach your screenshot again?


User avatar
aragorn
Posts: 2600
Joined: 29 Jun 2013, 12:38

23 Mar 2017, 12:28

I think you can give a width to column;

Code: Select all

<p:column width="100px;">
        <p:commandButton icon="fa fa-pencil" />
        <p:commandButton icon="fa fa-home" />
</p:column>
And add margin-* to buttons

hairi11
Posts: 21
Joined: 18 Apr 2016, 16:13

04 Jun 2017, 08:13

Sorry. Long time after responding to your reply.

I fixed it with a size for column table but its give effect to mobile view.

Please look to image https://drive.google.com/open?id=0ByXfn ... TRXOE1RcWs

Red box is w/o fixed the column.

Green box is when i put size to the column.

Thanks

/Hairi

User avatar
aragorn
Posts: 2600
Joined: 29 Jun 2013, 12:38

04 Jun 2017, 10:47

Glad to hear, thanks for the update and screenshot.

hairi11
Posts: 21
Joined: 18 Apr 2016, 16:13

10 Jun 2017, 20:39

Hi.
I look this as unresolved solution. still looking into it. any idea?
hairi11 wrote:
04 Jun 2017, 08:13
Sorry. Long time after responding to your reply.

I fixed it with a size for column table but its give effect to mobile view.

Please look to image https://drive.google.com/open?id=0ByXfn ... TRXOE1RcWs

Red box is w/o fixed the column.

Green box is when i put size to the column.

Thanks

/Hairi

User avatar
aragorn
Posts: 2600
Joined: 29 Jun 2013, 12:38

13 Jun 2017, 08:08

I think it is different from the first issue. Could you please attach the code of your responsive datatable?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest