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

change text dynamically #55

Closed
programming-kid opened this issue Sep 28, 2014 · 4 comments
Closed

change text dynamically #55

programming-kid opened this issue Sep 28, 2014 · 4 comments

Comments

@programming-kid
Copy link

This is one of the coolest jquery plugin, but with one flaw . why can't text be changed dynamically , i spentb 2 hrs trying to implement this plugin in angular , i wanted the text to be two way bound , but i couldn't succeed as i couldn't change text once plugin is initialized , i am missing something

pls help
thanks

@jschr
Copy link
Owner

jschr commented Sep 29, 2014

When textillate is initialized on an element it will create an inner <ul> with class texts if one does not already exist. You can change the text by editing the <li>s the the <ul>.

$element.find('.texts li:first').text('some new text');
$element.textillate('start');

Hopefully that helps

@programming-kid
Copy link
Author

yay !! that worked fine , do you have plans to write textllate for angular , it would be really cool.

Thanks

@edmundteekl
Copy link

thanks for the question and the author solution. It work on dynamic pull string from database and change it accordingly.

@viktorsheep
Copy link

+1 thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants