Gládio Cítrico

Ramu 0.7b doc

doc homeRamu

SimpleButtonBase.setOnClick()

Parameters

function func: Function to be called.

Description

Set the function called when the button is clicked.

You can test this snippet of code here.

let btn = new SimpleButtonBase(10,10,100,100);
btn.setOnClick(function(){
   /*...*/
});

See also SimpleButtonBase.setOnHoverEnter, SimpleButtonBase.setOnHoverExit and SimpleButtonBase.setOnHoverStay.