[Double Tap, 1]Dojo-interest Digest, Vol 150, Issue 5

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Double Tap, 1]Dojo-interest Digest, Vol 150, Issue 5

Jason A. Griffin
Try dojox.gesture.  It looks like it can handle both types 


The dojox/gesture/tap looks like it should give you more than enough options.  I like the sound of tap and hold.

Good luck!

On 6/6/2017 at 12:00 PM, [hidden email] wrote:
Send Dojo-interest mailing list submissions to
[hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
or, via email, send a message with subject or body 'help' to
[hidden email]

You can reach the person managing the list at
[hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Dojo-interest digest..."


Today's Topics:

1. Re: Add double tap support to dgrid (Harry Devine)
2. Re: Add double tap support to dgrid (Harry Devine)


----------------------------------------------------------------------

Message: 1
Date: Mon, 5 Jun 2017 15:15:16 -0400 (EDT)
From: Harry Devine <[hidden email]>
Subject: Re: [Dojo-interest] Add double tap support to dgrid
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="utf-8"

I was able to implement the dbltap handler, but I don't know how to tie it to the dGrid dblclick handler when I double click on a column, and seen below. Here's what I'm doing now for the dbltap as a test (which works but its only a place holder):


/* Handler for double-taps on a mobile device */
mod.gamesGrid.on(touchUtil.selector('.dgrid-content .dgrid-row', touchUtil.dbltap), function(event) {
alert("Row clicked: " + mod.gamesGrid.row(event));
});


Any ideas? I'd really like to have this working before tomorrow night.


Thanks,

Harry

>
> On June 4, 2017 at 10:14 PM Harry Devine <[hidden email]> wrote:
>
> I have a site that is still using 0.3.17 of dGrid. I am using the
> editor plug in to allow editing of a cell by double-clicking on a cell.
> What I need to do is allow the grid to respond to a double tap from a
> mobile device and allow the same edit. Also, when I make the change and
> hit Enter, the dgrid-datachange event is triggered. I need to handle
> that as well.
>
> Here's what my editor column in my dgrid looks like for reference:
>
> oppscore: editor({label: "Opponent Score", field:
> "opponent_score"},"text","dblclick"),
>
> Any help would be appreciated. I need to have this working in the next
> few days.
>
> Thanks,
>
> Harry
>
> --
> Dojo Toolkit: http://dojotoolkit.org/
> Tutorials: http://dojotoolkit.org/documentation/
>
> [hidden email]
> To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20170605/3ccf0b5f/attachment.html

------------------------------

Message: 2
Date: Mon, 5 Jun 2017 15:47:47 -0400 (EDT)
From: Harry Devine <[hidden email]>
Subject: Re: [Dojo-interest] Add double tap support to dgrid
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="utf-8"

In case anyone come across this post, I was able to get it working with the help from the following documentation: https://github.com/SitePen/dgrid/blob/master/doc/components/mixins/Editor.md.


I ended up putting the following into my dgrid editor handler and it works on both my desktop and mobile:


oppscore: editor({label: "Opponent Score", field: "opponent_score"},"text", has('touch') ? "click" : "dblclick"),


Thanks,
Harry

> On June 5, 2017 at 3:15 PM Harry Devine <[hidden email]> wrote:
>
>
> I was able to implement the dbltap handler, but I don't know how to tie it to the dGrid dblclick handler when I double click on a column, and seen below. Here's what I'm doing now for the dbltap as a test (which works but its only a place holder):
>
>
> /* Handler for double-taps on a mobile device */
> mod.gamesGrid.on(touchUtil.selector('.dgrid-content .dgrid-row', touchUtil.dbltap), function(event) {
> alert("Row clicked: " + mod.gamesGrid.row(event));
> });
>
>
> Any ideas? I'd really like to have this working before tomorrow night.
>
>
> Thanks,
>
> Harry
>
> > >
> > On June 4, 2017 at 10:14 PM Harry Devine <[hidden email]> wrote:
> >
> > I have a site that is still using 0.3.17 of dGrid. I am using the
> > editor plug in to allow editing of a cell by double-clicking on a cell.
> > What I need to do is allow the grid to respond to a double tap from a
> > mobile device and allow the same edit. Also, when I make the change and
> > hit Enter, the dgrid-datachange event is triggered. I need to handle
> > that as well.
> >
> > Here's what my editor column in my dgrid looks like for reference:
> >
> > oppscore: editor({label: "Opponent Score", field:
> > "opponent_score"},"text","dblclick"),
> >
> > Any help would be appreciated. I need to have this working in the next
> > few days.
> >
> > Thanks,
> >
> > Harry
> >
> > --
> > Dojo Toolkit: http://dojotoolkit.org/
> > Tutorials: http://dojotoolkit.org/documentation/
> >
> > [hidden email]
> > To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
> >
> > >




Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20170605/4c7e72ed/attachment-0001.htm

------------------------------

________________
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest



End of Dojo-interest Digest, Vol 150, Issue 5
*********************************************

--
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

[hidden email]
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
Loading...