Discussion:
question about mobile list and longtap
(too old to reply)
rsantiagopaz
2016-06-28 08:45:25 UTC
Permalink
hi (sorry the english)

I use a mobile list and longtap event to show a context menu. But I need
known the item selectioned (the item model, item index, etc). How I can know
the item list?
I try (targets, touch events, taps, etc) and read all the documentation and
I can't figure how to get this.

thanks



--
View this message in context: http://qooxdoo.678.n2.nabble.com/question-about-mobile-list-and-longtap-tp7588348.html
Sent from the qooxdoo mailing list archive at Nabble.com.
John Spackman
2016-06-28 10:27:10 UTC
Permalink
Hi

Please could you re-ask this question at StackOverflow and make sure you add the tag “qooxdoo”?  We’re trying to develop a more public set of Q&A and StackOverflow is a great way to do it

Regards
John



On 28 June 2016 at 09:47:29, rsantiagopaz (***@gmail.com) wrote:

hi (sorry the english)

I use a mobile list and longtap event to show a context menu. But I need
known the item selectioned (the item model, item index, etc). How I can know
the item list?
I try (targets, touch events, taps, etc) and read all the documentation and
I can't figure how to get this.

thanks



--
View this message in context: http://qooxdoo.678.n2.nabble.com/question-about-mobile-list-and-longtap-tp7588348.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
kreimer
2016-06-28 16:09:40 UTC
Permalink
Hola Santiago,

probablemente te sea más conveniente escuchar al changeSelection de la
lista. Para posicionar el popup respecto al item correspondiente a la
selección, tendrías averiguar la posicion (algun indexOf de la coleccion con
la que construiste la lista) y con eso mas los métodos getItemCount y
getItemHeight... posicionar el popup. Estaría bien que todo esto estuviera
soportado ya en qx.Mobile, que es un sabor algo en desuso (yo lo uso),. Pero
ahí esta todo en github.. para que lo enriquezcas.

Suerte!



--
View this message in context: http://qooxdoo.678.n2.nabble.com/question-about-mobile-list-and-longtap-tp7588348p7588350.html
Sent from the qooxdoo mailing list archive at Nabble.com.
rsantiagopaz
2016-07-02 16:24:54 UTC
Permalink
thanks kreimer

no necesito posicionar, necesito saber que item estaba siendo presionado. El
behavior basico de menu de contexto en apps moviles.

I do not need positioning, I need known the pressed item when the longtap is
triggered.
I asume is easy get a hack, but I have no knowledge.
Without a answer negative or positive Im stuck. But I will use others
options, no context menu.
thanks

Sorry the english!



--
View this message in context: http://qooxdoo.678.n2.nabble.com/question-about-mobile-list-and-longtap-tp7588348p7588353.html
Sent from the qooxdoo mailing list archive at Nabble.com.
kreimer
2016-07-07 13:43:23 UTC
Permalink
hola, me imagino que sabiendo la posición de la selección te basta para saber
qué ítem fue seleccionado. (tu guardas la lista 'modelo' con la que
alimentaste la lista con setModel, no?)

Extraído de la doc de qx.ui.mobile.list.List:

list.addListener("changeSelection", function(evt) {
alert("Index: " + evt.getData())
}, this);



--
View this message in context: http://qooxdoo.678.n2.nabble.com/question-about-mobile-list-and-longtap-tp7588348p7588355.html
Sent from the qooxdoo mailing list archive at Nabble.com.
rsantiagopaz
2016-07-07 19:52:12 UTC
Permalink
I inspected the removeItem event and found a solution





--
View this message in context: http://qooxdoo.678.n2.nabble.com/question-about-mobile-list-and-longtap-tp7588348p7588356.html
Sent from the qooxdoo mailing list archive at Nabble.com.
John Spackman
2016-07-08 07:54:26 UTC
Permalink
Hi guys

Thanks for contributing and taking part on the list, but please can you communicate in English?  Qooxdoo is made up of users from across Europe as well as further afield, and the official policy is that all emails, discussions, comments, etc are in English.

Thanks
John

On 7 July 2016 at 21:07:12, rsantiagopaz (***@gmail.com) wrote:

I inspected the removeItem event and found a solution





--
View this message in context: http://qooxdoo.678.n2.nabble.com/question-about-mobile-list-and-longtap-tp7588348p7588356.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Loading...