How to get current action name in controller


#1

Hai guys, i have problem to get current action name in controller

this my example code


actions: {
     editItem: function() {
           // get action name
     },
     updateItem: function(params) {
           // get action name
     }
}

#2

Questions need to be clear and concise, as there is a lot of room for interpretation since you provided a single sentence. From within the method you want access to the actionName that was invoked? As an argument of the method perhaps?

In any case, this is what I hoped you were asking for: http://jsbin.com/tonowiqexo/1/edit?html,js,output


#3

solved my problem … Thank you jasonmit