Feature "Default Event Handlers"

Feature "Default Event Handlers"

rf1234rf1234 Posts: 3,021Questions: 88Answers: 421

I frequently set Editor default configuration options using $.extend( true, $.fn.dataTable.Editor.defaults ...

Question is: Can I also set default Editor event handlers? If not could that be a new feature?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    Answer ✓

    What I think you'd need to do here is have a function which adds all your common event handlers and call that, passing in the Editor instance, just after the instance has been created.

    The events happen on the instance and they don't propagate, so the only way to add such a feature would be to have a static storage space that Editor would look for and run. I think I prefer the function option at this time.

    Allan

  • rf1234rf1234 Posts: 3,021Questions: 88Answers: 421

    Agreed! Will use the function approach, Allan.

Sign In or Register to comment.