02. Disable a draggable on a Shape1
identifier : my disable notes
selector : #wb_Shape1
type : draggable
event : destroy
cursor style : default
run on call : my_wbShape1disable2
03. Disable all, events and core, on a Shape1
identifier : my disable notes
selector : #wb_Shape1
type : off
event : all
cursor style : default
run on call : my_wbShape1disable3
We can then call our disable function at anytime with a run on call
Example: my_wbShape1disable2( ) called from a callback function, would disable a draggable on a Shape1 (=example 2)
NOTE: If we want to enable the event or core again we just call the run on call of the event or core itself again (re-enable)
__________________________________________________________________________
more info on module | disable see here Properties
MODULE DISABLE - OVERVIEW
TOOL
jQuery Event
Disable - Destroy
EXPLAIN ?
module | disable properties can be used to disable events or core by run on call
sometime we may want to disable an event
ie. we have a button that we animate and during it's animation we do not want the user to interact on the animation
with module | disable we can disable these events or core - (core=draggable, droppable and resizable)
••• EXAMPLES
01. Disable a click event on a Shape1
identifier : my disable notes
selector : #wb_Shape1
type : off
event : click
cursor style : default
run on call : my_wbShape1disable1