SaveState should include which button was last clicked

SaveState should include which button was last clicked

sarahksarahk Posts: 2Questions: 1Answers: 0

I'm using buttons in a fairly simple say, just using then to call

myTable.ajax.url('/controller/json/current/').load();

It would be useful to be able to retrieve the last button click when loading a page and set the default ajax URL accordingly.

Are there any plans to include this?

Is there a better way of tracking this info?

Replies

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Nope, there's no plans to add that, as those buttons would be specific to your configuration. However, you can add them yourself with stateSaveParams - see example here which is added selected rows to the saved information.

    Colin

This discussion has been closed.