TypeFilter Type

TypeFilter is the type that allows specifying types and subtypes values to use in filters (Filter).

Syntax

var myTypeObject = new TypeFilter(<type>, [<subTypes>]);

Parameters Usage

Parameter

Type

Default

Use

Annotation

type

Integer

-

Mandatory

Numeric identifier of the type.

subTypes

Integer

Integer Array

-

Optional

An individual subtype numeric identifier or an array of subtype numeric identifiers.

new TypeFilter(8100);

new TypeFilter(8100, 8101);

new TypeFilter(8100, [8101, 8102]);

Properties

The properties of the TypeFilter object allow assigning the subtype numeric identifiers using the dot notation.

Property

Type

Default

Annotation

type

Integer

-

Numeric identifier of the type.

This property is read-only.

subType

Integer Array

-

Array of subtypes specified for this type.

var type= new TypeFilter(8100);

type.subTypes = 8101;

type.subTypes = [8101];

type.subTypes = [8101, 8102];