TileBoard icon indicating copy to clipboard operation
TileBoard copied to clipboard

Events

Open alphasixtyfive opened this issue 4 years ago • 4 comments

What would you guys think about adding events for various things, like app loaded, tile clicked, page navigated, popup opened/closed etc. This way user could bind to them and do fancy things like playing sounds etc.

alphasixtyfive avatar Jan 27 '21 14:01 alphasixtyfive

I'm not against but maybe the implementation should be driven by specific use-cases as otherwise, it might be hard to judge which events would be useful and which not.

Also, would be enough to just trigger an event with no context information, or each event would have to carry some additional context information like the tile that was clicked or the popup that was opened? It all would have to be defined then.

rchl avatar Jan 27 '21 21:01 rchl

This would indeed be a bit messy and it would be nice to pass the context but... but the sounds! :)

alphasixtyfive avatar Jan 28 '21 21:01 alphasixtyfive

Can't we play sounds natively in JS? If so, it could be done by redefining the default actions. A bit messy to configure, I admit...

akloeckner avatar Feb 16 '21 23:02 akloeckner

Can't we play sounds natively in JS? If so, it could be done by redefining the default actions. A bit messy to configure, I admit...

Sounds was just the example, having events to subscribe to would be nice to have but certainly not essential.

alphasixtyfive avatar Feb 18 '21 12:02 alphasixtyfive