ImageViewerCondition

Description

An ImageViewerCondition is an interface to specify which image to display when a condition is true. The image can be a path or a css class.

Properties

Property

Type

Description

url?

string

A local path or http of the image to display when the condition is true.

cssClass?

string

A css class name of the image to display when the condition is true.

Functions

Method

Argument(s)

Output

Description

condition

context

boolean

A function receiving the ViewerContext and outputting true when the image needs to be displayed, otherwise false.