You need to sign in to do that
Don't have an account?

Dynamically shortened Text with “Show More” link for lightning component
Hi all,
I want short had the text if large text is there how can i achieve this?Please help me out
I want short had the text if large text is there how can i achieve this?Please help me out
You can use: 'jQuery plugin to automatically shorten text in a DIV and add "show more" link.'(https://github.com/viralpatel/jquery.shorten)
Working example: JSFiddle(http://jsfiddle.net/cypmsccd/)
Step 1: Include the jQuery plugin in your HTML Step 2: Add the code to shorten any DIV content (we are shortening DIV with class 'text') Step 3: You may want to pass the parameters to shorten() method and override the default ones on jQuery. Hope this helps.
Regards,
Nagendra.
Can you example it in lightning component as me new to salesforce