Shiny Language Reference

Language Reference > Panel Functions


getpanelallowdrag

bool getpanelallowdrag();

 

 

Retrieves whether the display panel can be dragged

GETPANELALLOWDRAG returns the internal state controlling whether the panel can be dragged. Refer to setpanelallowdrag documentation for information on this state.

 

Parameters

None

 

Return Value

True if the panel drag functions are enabled, otherwise False

 

Example Code

// Prevent any use or change to the drag functions
setpanelallowdrag(False);

// Test the state of the drag functions (will of course return FALSE)
bool State = getpanelallowdrag();