Shopify / dashing

The exceptionally handsome dashboard framework in Ruby and Coffeescript.
http://shopify.github.com/dashing/
MIT License
10.97k stars 1.18k forks source link

How to make text selectable? #736

Open earslan10 opened 7 years ago

earslan10 commented 7 years ago

Hi,

Does anyone know how to disable clickable feature of widget so I can highlight and copy text on widget?

Thanks

cflinspach commented 7 years ago

In application.coffee add items: "none" so your Batman.setImmediate -> looks like:

draggable:
stop: Dashing.showGridsterInstructions
start: -> Dashing.currentWidgetPositions = Dashing.getWidgetPositions()
items: "none"

94 has more info.

qthatswho commented 7 years ago

This worked for me to disable dragging, but not to enable text selection. Anyone else having an issue where the text in widgets cannot be selected (even though the I-bar cursor shows up)?

qthatswho commented 7 years ago

For anyone interested, I ended up adding the following to Batman.setImmediate ->, and it enabled text selection:

gridster.data('gridster').disable().resize_disable()