0.1.5 • Published 6 years ago

tata-js v0.1.5

Weekly downloads
22
License
MIT
Repository
github
Last release
6 years ago

TaTa.js

Live Demo

GitHub issues GitHub forks GitHub stars

Install

yarn add tata-js

import tata from 'tata-js'

OR

<script src="tata.js"></script>

Usage

tata.text('Hello', 'Have a nice day.', {// config})
tata.log('Hello', 'Have a nice day.', {// config})
tata.info('Hello', 'Have a nice day.', {// config})
tata.success('Hello', 'Have a nice day.', {// config})
tata.warn('Hello', 'Have a nice day.', {// config})
tata.error('Hello', 'Have a nice day.', {// config})

Config

nametpyedefaultDescription
positionstringtrtr, tm, tl, mr, mm, ml, bl, bm, br
durationnumber3000show haw many time
progressbooleantruedispaly a progress bar
holdingbooleanfalseno disappear
closeBtnbooleantrueshow close button
animatestringfadefade or slide
onClickfunctionnullcallback function on click
onClosefunctionnullcallback function on close

License

MIT

0.1.5

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago