The getDisplay returns the display CSS property of the widget ie none, block, inline etc.
widget.getDisplay();