Listener Extension


#1

Hello, I Edited this Post Im sorry just because my English So bad this is function To add listener of component with event Clik and Longclick

AIX

Blocks


Please help me out
#2

Are you sharing an extension?
or
Asking help?:confused:


#3

Did you see the link? and the hashtag off course

sorry, I think I Put wrong word “Help” on my post.


#4

This confused me to ask above question.

Please add some screen shots and describe briefly.


#5

i already atached the blocks


#6

Thanks for the great extension :heart_eyes:


#7

Nice see you happy :joy:


#8

LISTENER EXTENSION

Description

Useful extension for listening click and long click methods for Images, Label, Horizontal Arrangement, Horizontal Scroll Arrangement, Vertical Arrangement and Vertical Scroll Arrangement.

Event handlers

  • Click: Event handler when clicking a registered component. Returns the id of the clicked component.
  • LongClick: Event handler when long clicking a registered component. Returns the id of the long clicked component.
  • RegisImage: Method for registering an image component with an id. You can use this method when initializing the screen.
  • RegisLabel: Method for registering a label component with an id. You can use this method when initializing the screen.
  • RegisHorizontalArrangement: Method for registering an image component with an id. You can use this method when initializing the screen.
  • RegisHorizontalScrollArrangement: Method for registering an image component with an id. You can use this method when initializing the screen.
  • RegisVerticalArrangement: Method for registering an image component with an id. You can use this method when initializing the screen.
  • RegisVerticalScrollArrangement: Method for registering an image component with an id. You can use this method when initializing the screen.

Example

Downloads

.AIX Link
.AIA Link


Underline Text In Chat App
Compact button padding
#9

Thank You so much Mr. Carlos Pedrosa :metal::+1:


#10

Looks like this extension is a perfect copy of my extension:

I hope for you that you don’t have used any of my code.
All of my codes have a copyright.

Else, great work. :slight_smile:


#11

@Mika I build the code from the bottom i’ll send the code to you.


#12

Allright, then I trust you.
Good work.


#13

Great work @Kus_Zab keep it up.


#14

THANKS!
I was looking this morning for something like that


#15

Does any one have a good use case for this ?

Would it be good for use with a dynamic component generator,
or maybe for exposing and hiding drawers of Horizontal Arrangements
like the AI2 Design Screen Component Category drawers?

ABG


#16

hi abraham, nice to see you here!
i’ll use it for the longclick event on horizontal arrangements in which i a a list of data…click shows data in a screen, long click edit


#17

So this could be used the same way as the Bo Kalvslund
ListView simulation in https://www.youtube.com/watch?v=rAgllUjT6FE&feature=youtu.be
where he set up a Vertical Arrangement of five Horizontal Arrangements,
each HA containing an image, 2 labels, and a button,
matched against a sliding window into an underlying list,
selection done only by the buttons.

The advantage here would be specifying the HA instead of the button,
so the user could press anywhere in the HA to select?

ABG


#18

bo is great, but now i’m using this

the advantage, in the arrangement i’m building, is to avoid another button…it’s very full of stuff…


#19

Is it possible add track left,right operations


#20

very good extension, but RegisVerticalScrollArrangement cannot control,please check it.