cngu / vue-typer

Vue component that simulates a user typing, selecting, and erasing text.
https://cngu.github.io/vue-typer
MIT License
792 stars 51 forks source link

Added possibility to optional fire events for each char which gets typed (updated) #14

Closed Gr33nbl00d closed 6 years ago

Gr33nbl00d commented 7 years ago

An event is now emitted after each single char which was typed.

<vue-typer @typed-char="onCharTyped" text='hello'/>

function onCharTyped(lastCharTyped){}

The function used for listening gets called with one parameter which is the last char which was rendered.

This can be handy if special effects should be executed after a char was rendered. I used this to create a typing sound effect and used for each character a different typing sound :)

cngu commented 7 years ago

This is pulling in some changes on master that aren't needed on develop.

Please switch to the develop branch locally, pull the latest, cherry-pick only the commits you need from your local master branch, and submit the PR from Gr33nbl00d:develop to cngu:develop.

Gr33nbl00d commented 7 years ago

Ah yes sorry got it ;)

Am 31.08.2017 5:01 nachm. schrieb "Chris Nguyen" notifications@github.com:

This is pulling in some changes on master that aren't needed on develop.

Please switch to the develop branch locally, pull the latest, cherry-pick only the commits you need from your local master branch, and submit the PR from Gr33nbl00d:develop to cngu:develop.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cngu/vue-typer/pull/14#issuecomment-326323395, or mute the thread https://github.com/notifications/unsubscribe-auth/AVm6fVapc4YFVmv89dP_Mvn0fTOI1F7Zks5sdsrPgaJpZM4PIh8j .