Skip to main content

Home > @jsplumbtoolkit/core > SelectionOptions

SelectionOptions interface#

Signature:

export interface SelectionOptions 

Properties#

PropertyTypeDescription
autoFill?boolean(Optional) Defaults to false. If true, and a generator is supplied,
generator?Function(Optional) Optional function that can be called to fill the selection. You'd use this when you are rendering individual selections and you need to be able to refresh the whole view based on some change in the data model.
lazy?boolean(Optional) If true, the selection will not populate itself as soon as it is constructed. Otherwise, and this is the default behaviour, it will.
onBeforeReload?Function(Optional) Optional. called before the selection is cleared at the beginning of a reload, when a generator is supplied.
onClear?Function(Optional) Optional function to call when the selection is cleared.
onReload?Function(Optional) Optional. called after a reload when a generator was supplied.