mui-datatables icon indicating copy to clipboard operation
mui-datatables copied to clipboard

Does the datatables have props to handle long text? like ellipsizemode='tail' from react native?

Open dapapkung opened this issue 7 years ago • 1 comments

Expected Behavior

More about ellipsizemode='tail': https://facebook.github.io/react-native/docs/text#ellipsizemode

Here is my data:

const data = [
      [
        '0001',
        'Someone',
        'This is a feedback..',
      ],
      [
        '0002',
        'Someone2',
        'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.',
      ],
      [
        '0003',
        'Someone3',
        'This is a feedback..',
      ],
      [
        '0004',
        'Someone4',
        'This is a feedback..',
      ],
    ];

And i want to show Lorem ipsum just like this:

Lorem Ipsum is simply dummy text...

Your Environment

Tech Version
Material-UI 3.8.2
MUI-datatables 2.0.0-beta-53
React 16.6.0
browser Chrome
etc

dapapkung avatar Feb 12 '19 09:02 dapapkung

Solved!

using javascript substring

dapapkung avatar Feb 13 '19 08:02 dapapkung