Jump to content

List of items with delete button


Volk65

Recommended Posts

How to make a list of "buttons" (as in the picture)?

So that it was a button + delete button (with a cross). To get a reaction to two events: 1. Pressed the main button, 2. Pressed the cross.
The list will be created dynamically at run time.

Is that possible?

Screenshot_51.png

Link to comment
Share on other sites

Need clarification. When you click on the icon, two events are called sequentially: Button.AjaxEvent then Button.OnClick.
And in the OnClick event I can't understand what was pressed, the button or the icon.
Or I need two events in AjaxEvent, separately for the button and for the icon:

     JSConfigObject('listeners','btnIconEl', [JSObject(['click', JSFunction('sender','ajaxRequest('+JSName+', "iconClick");')])]);
     JSConfigObject('listeners','Button????', [JSObject(['click', JSFunction('sender','ajaxRequest('+JSName+', "buttonClick");')])]);

 

Link to comment
Share on other sites

Yes-s-s!!! Strike!

1 hour ago, Hayri ASLAN said:

JSConfigObject('listeners','btnIconEl', [JSObject(['click', JSFunction('e','e.stopPropagation(); e.preventDefault();  ajaxRequest('+JSName+', "iconClick");')])]); 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...