Skip to content

[F] isVisible

isVisible(program, property, filter)

function isVisible(
program,
property,
filter): boolean

Determines if a property is visible according to the given visibility filter.

Parameters

ParameterTypeDescription
programProgramthe program in which the property occurs
propertyModelPropertythe property to check
filterVisibilityFilterthe visibility filter to use

Returns

boolean

true if the property is visible according to the filter, false otherwise

See

VisibilityFilter

isVisible(program, property, visibilities)

function isVisible(
program,
property,
visibilities): boolean

Determines if a property has any of the specified (legacy) visibility strings.

Parameters

ParameterTypeDescription
programProgramthe program in which the property occurs
propertyModelPropertythe property to check
visibilitiesreadonly string[]the visibility strings to check for

Returns

boolean

Deprecated

Calling isVisible with an array of legacy visibility strings is deprecated. Use a VisibilityFilter object instead.