addeventlistener

  1. Mashiane

    B4J Question [BANAno] Is it possible to use a variable string to specify an event?

    Hi For .AddEventListener and .CallBack, is it possible to specify the event from a string? For example 'add an event Sub AddEvent(module As Object, eventType as string) 'define the method to be called Dim sEvent as string = $"game_${eventType}"$ Dim e as BANanoEvent 'define the callback Dim...
  2. Mashiane

    B4J Question [BANano] [SOLVED] How to define events for custom component?

    Ola I kindly request some help defining an event listener for this type of function.. tree.on('collapse', function (e, node, id) { alert('collapse is fired.'); }); My tree is currently a BANanoObject, which is fine, just need to figure out the next part of the equation...
Top