Hello, I'm implementing a custom button with an AJAX action. After AJAX action completion, I want to apply certain CSS class to the selection.
What method do you recommend?. I have two:
1) Add a custom button: I can call my AJAX action, but don't now how to use the "CssClassApplier" stuff from this button.
2) Use a CSSClassApplierButton: In this case, I ask to you if it is possible to add a "pre-action" to the built-in action (CSSClassApplierButton.prototype.action).
Hello, I'm implementing a custom button with an AJAX action. After AJAX action completion, I want to apply certain CSS class to the selection.
What method do you recommend?. I have two:
1) Add a custom button: I can call my AJAX action, but don't now how to use the "CssClassApplier" stuff from this button.
2) Use a CSSClassApplierButton: In this case, I ask to you if it is possible to add a "pre-action" to the built-in action (CSSClassApplierButton.prototype.action).
Thanks!