These are chat archives for ractivejs/ractive
<div on-swipeleft('.pos')="do-a-thing">swipe left to do a thing and track the swipe at .pos</div>
.posis (seems like a selector... or a variable... I'm confused by syntax), and how
do-a-thingis related to it.
Could it also potentially be a separate directive? Like how bootstrap uses data-attributes and ids to support functionality added by classes.
<button class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">
In the above case, toggling is introduced to the button by
dropdown-toggle, but what to toggle is hinted by
<div on-event="doSomething" event-options="stuff, stuff, and moarStuff">
curl -i https://cdnjs.cloudflare.com/ajax/libs/ractive/0.9.13/ractive.min.js HTTP/2 404
.posin the event, it would be a keypath that the event plugin would update with a position during the swipe movement before the event fired. That would allow a peeking-menu-style effect as is common with material
enterkeypress, you have to handle checking the key in the handler that you pass in, which is fine until you want to do different things with different keys in a bunch of different places
<input on-key(10,13)="@.accept()" on-key(27)="@.cancel()" />would be pretty cool