Closed pixedelic closed 11 years ago
@pixedelic If I understand correctly, you'd like to make truncated text appear on the page, but not do anything after that. Something like this would not require a callback:
function showTruncated() {
$('.too-long').show().trunk8();
}
This can be invoked by any event handler, as a button click for example:
$('.my-button').click(showTruncated);
Assuming the element was already hidden, like so:
.too-long {
display: none;
}
Did that answer your question?
You're right Rick, thank you!
Manuel :-)
2012/12/4 Rick Viscomi notifications@github.com
@pixedelic https://github.com/pixedelic If I understand correctly, you'd like to make truncated text appear on the page, but not do anything after that. Something like this would not require a callback:
function showTruncated() { $('.too-long').show().trunk8();}
This can be invoked by any event handler, as a button click for example:
$('.my-button').click(showTruncated);
Assuming the element was already hidden, like so:
.too-long { display: none;}
Did that answer your question?
— Reply to this email directly or view it on GitHubhttps://github.com/rviscomi/trunk8/issues/17#issuecomment-11012142.
Manuel Masia – Pixedelic via Brescia, 15 47841 - Cattolica - RN (Italy) p. iva 03718310406
http://www.pixedelic.com/links.php http://themeforest.net/user/pixedelic https://twitter.com/#!/pixedelic http://dribbble.com/pixedelic http://www.facebook.com/pages/Consorzio-Creativo/209711855772 http://beta.threadless.com/profile/695793/manuelmasia/designs
Any chance to have a callback? I want to hide the text and show it only once truncated, is that already possible?
Thank you, very useful plugin BTW!