[F] isVisible
isVisible(program, property, filter)
function isVisible( program, property, filter): booleanDetermines if a property is visible according to the given visibility filter.
Parameters
| Parameter | Type | Description |
|---|---|---|
program | Program | the program in which the property occurs |
property | ModelProperty | the property to check |
filter | VisibilityFilter | the 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): booleanDetermines if a property has any of the specified (legacy) visibility strings.
Parameters
| Parameter | Type | Description |
|---|---|---|
program | Program | the program in which the property occurs |
property | ModelProperty | the property to check |
visibilities | readonly 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.