Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using showMore and showLess options #10

Open
ghost opened this issue Apr 17, 2015 · 3 comments
Open

Using showMore and showLess options #10

ghost opened this issue Apr 17, 2015 · 3 comments
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Apr 17, 2015

Hi,

I was looking for a reference for showMore and showLess options, but I couldn't find it. I'm testing this and doesn't work:

$('#truncate_me').truncate({
lines: 2,
lineHeight: 20,
showMore: 'More',
showLess: 'Less'
});

Can you give me some guidance?

Thanks.

@jeffchan
Copy link
Owner

Hey @Vizalizer, can you show me the HTML that's inside the #truncate_me element?

@ghost
Copy link
Author

ghost commented Apr 17, 2015

Hi Jeff!

I’m using angular to get junk of html code inside the DIV. This html usually has P (paragraphs), STRONG, SPAN. Actually I’m trying to convert your plugin into an Angular Directive.

On the other side, inside the showMore and showLess options:

$('#truncate_me').truncate({
lines: 2,
lineHeight: 20,
showMore: 'More',
showLess: 'Less
});

The fact that I’m calling an element inside an element doesn’t feel right to me...

Thanks,

Diego

On Apr 16, 2015, at 8:00 PM, Jeff Chan [email protected] wrote:

Hey @Vizalizer https://github.com/Vizalizer, can you show me the HTML that's inside the #truncate_me element?


Reply to this email directly or view it on GitHub #10 (comment).

@jeffchan
Copy link
Owner

I see. If possible, I'd like to see some samples of the HTML you are placing in the div

@Tuizi Tuizi self-assigned this Sep 22, 2016
@Tuizi Tuizi added this to the 1.1.3 milestone Sep 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants