Activity Forums Salesforce® Discussions Difference between slds-has-flexi-truncate and slds-truncate?

  • Difference between slds-has-flexi-truncate and slds-truncate?

    Posted by Suraj on April 17, 2017 at 2:32 pm

    Difference between slds-has-flexi-truncate and slds-truncate?

    Saurabh replied 7 years ago 2 Members · 1 Reply
  • 1 Reply
  • Saurabh

    Member
    April 18, 2017 at 10:52 am

    Hi Suraj

    Difference between Slds-has-flexi-truncate and Slds-truncate is given below:

             Slds-truncate

    • Usage:  It can be applied to:-  Any element
    • Outcome:Creates truncated text
    • Required:No, optional element or modifier
    • Comments:Truncation will occur at the parent width if a width is not specified

     Slds-has-flexi-truncate

    • Usage:It can be applied to:.slds-col
      .slds-col--padded
    • Outcome:Allows truncation in nested flexbox containers
    • Required:No, optional element or modifier
    • Comments:This class is placed on a parent element that contains a flexbox element containing .slds-truncate. For example — for a media object that is nested in a grid column and contains truncation — the grid column would require this class.

    Hope it may help you:

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos