rob-murray / ui-message-queue

User Interface Message Queue Javascript implementation
http://rob-murray.github.io/ui-message-queue/
Other
24 stars 4 forks source link

Additional option argument for lifetime of message #9

Open corticalstack opened 10 years ago

corticalstack commented 10 years ago

Hi,

Great work. Possible to add additional option argument for lifetime of message show upon push to queue?

Thanks.

corticalstack commented 10 years ago

Just to clarify, if delay in the queue options is 0, then message 2 immediately clears message 1, as there is no delay for message 2 to show.

Turning the delay "on it's head", I may want an initial message to show immediately, and then expire after a set "lifetime", and then for the next message in the queue to show, lasting for it's specified lifetime, and so on.

corticalstack commented 10 years ago

Or even simpler, a flag to indicate whether delay is pre or post message display.

rob-murray commented 10 years ago

Will have a think about this one.

Watch this space....