AbstractThe compendium browser this filter is used in.
A Collection of FilterChoices for this filter.
A reference to the CompendiumBrowser this filter is used in.
The ID of this filter used to identify it in its browser's filters.
Static AbstractindexThe field this filter checks against its choices.
Will also be added to the compendiumIndexFields of the document's CONFIG object.
Static AbstractlabelThe label for this filter visible to the user.
StaticlocalizeAuto-localize choices.
Defaults to false due to pre-translation.
StaticlocalizeAuto-localize filter label
StaticlocalizePrefix to add to choices before localization.
StaticTEMPLATEThe handlebars template used to render this filter.
StatictypeA convenience property to define a single type this filter applies to.
StatictypesThe types of document this filter applies to.
Whether this filter has any active choices.
The number of active choices.
StatichandledThe authoritative Set of types this filter applies to.
AbstractactivateAbstractapplyProvide data necessary to render this filter. The data object generated by BaseFilter#getData contains the minimum data not only required by the filter itself, but also by the rendering CompendiumBrowser.
} The data object for this filter
Returns whether this filter has more than the given number of choices. Defaults to 1, as a single choice allows for no real filtering.
Optionalnumber: number = 1The number of choices to check for
Abstractreset
A basic filter class containing common functionality for all filters.
Inheriting classes should define the following static properties: label, indexField. Inheriting classes may define the following static properties: type.