Description
The Filter
field is a member of the MaskScope
enumeration within the Sandbox.UI
namespace. It represents a mask used specifically for filters in the context of UI rendering. This enumeration is used to define possible values for the mask-scope
CSS property, which determines how masks are applied to UI elements.
Usage
Use the MaskScope.Filter
field when you need to apply a mask that is specifically intended for filtering purposes in your UI components. This can be useful when you want to control the visibility or appearance of certain UI elements based on specific criteria or conditions.
Example
// Example of using MaskScope.Filter in a UI component
public class MyCustomComponent : Panel
{
public MyCustomComponent()
{
// Set the mask scope to Filter
this.Style.Set("mask-scope", MaskScope.Filter.ToString().ToLower());
}
}