IPFToggler formatter

This formatter allows you to easily add and remove styles and values from the underlying component and a given component by clicking on the cell to which IPFToggler is applied. The actual content displayed in the cell is controlled by the Field Display Format attribute on the formatter.

Styles

Target Style1 is the name of the style that will be applied to the target component. If the Style2 attribute (below) is not specified, then the styles on TargetComponent are toggled in this manner:

Initial condition What IPFToggler does
ToggleTarget does not have Style1. Adds Style1 to ToggleTarget.
Toggle Target does have Style1. Removes Style1 from ToggleTarget.

Target Style2 is the name of the secondary style that will be applied to the target compo­nent. If specified, Style2 must be different from Style1. If the Style2 attribute is specified, then the styles on the TargetComponent will be toggled in this manner:

Initial condition What IPFToggler does
ToggleTarget does not have either Style1 or Style2. Adds Style1 to ToggleTarget.
ToggleTarget has Style1 but not Style2. Removes Style1 from ToggleTarget and adds Style2.
ToggleTarget has Style2 but not Style1. Removes Style2 from ToggleTarget and adds Style1.
ToggleTarget has Style1 and Style2. Removes Style2from ToggleTarget.

Self values

Self Value1 specifies that when the underlying component is clicked, the value of the underlying component will change.

Self Value2 is the value to which this component is set when it is clicked again. This value must be different from Value1.

Initial condition What IPFToggler does
Underlying component has Value1. Sets underlying component to Value2.
Underlying component has Value2. Sets underlying component to Value1.
Underlying component has a value that is different than both Value1 and Value2. Sets underlying component to Value1.