Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration SnapPuzzleEvents

Available events

Index

Enumeration members

Enumeration members

complete

complete: = "snapPuzzle:complete"

Triggered when all the pieces of the puzzle are placed correctly. The instance of the snap puzzle is passed as second argument.

example
$("someSelector").on(SnapPuzzleEvents.completed,(e,snapPuzzleWidgetInstance)=>{
     console.log(snapPuzzleWidgetInstance)
});

pieceDrop

pieceDrop: = "snapPuzzle:pieceDrop"

Triggered when a piece is dropped in a slot When a piece is dropped in the correct slot, the piece is automatically disabled

see

SnapPuzzlePieceDropEvent

example
$("someSelector").on(SnapPuzzleEvents.pieceDrop,(e,data:SnapPuzzlePieceDropEvent)=>{
     console.log(data)
 });

reset

reset: = "snapPuzzle:reset"

Triggered when the puzzle is reset. The instance of the snap puzzle is passed as second argument

example
$("someSelector").on(SnapPuzzleEvents.reset,(e,snapPuzzleWidgetInstance)=>{
     console.log(snapPuzzleWidgetInstance)
});

Generated using TypeDoc