How to register BUTTON event function dynamic

How to register BUTTON event function dynamic

zhangxlzhangxl Posts: 3Questions: 1Answers: 0

I want to register button event function by user's perm.
I return buttons json config back to front page from server.
In some UI,there some mechanism doing so, by finding button and registering your own function.
So how to dynamic register js special function to some button?

Replies

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin

    Yes you can use the buttons.buttons.action option to register your own function for the Buttons.

    Allan

  • zhangxlzhangxl Posts: 3Questions: 1Answers: 0

    How to ditinguish which button?
    I want to sperate special function from button codes.

This discussion has been closed.