checkbox Action
Posted: Wed Aug 20, 2014 5:39 pm
Hi,
I'm using a checkbox form control in my CSS. I want to launch an action when this is clicked.
My first thought was to catch the attribute change in the DocumentModificationsFilter setAttribute() method but I can't seem to get at AuthorAccess there.
Is this the correct approach? If so, how do I pass AuthorAccess to my filter? If this is not the correct approach, please advise.
Thanks
I'm using a checkbox form control in my CSS. I want to launch an action when this is clicked.
Code: Select all
oxy_editor(
type, check,
edit, "@ready",
values, "true",
uncheckedValues, "false",
labels, "")
Code: Select all
@Override
public void setAttribute(AuthorDocumentFilterBypass filterBypass, String attributeName, AttrValue value, AuthorElement element) {
if (attributeName.equals("ready")) {
// If value is true call Helpers.updateMetadata(authorAccess);
}
super.setAttribute(filterBypass, attributeName, value, element);
Thanks