Quantcast
Viewing all articles
Browse latest Browse all 15

Dashboard - prevent editing

How do I prevent a DashboardView from entering edit mode when holding down an Item...

Currently I have:

dashboard.addEventListener('edit', function() {
    dashboard.stopEditing();
});
which stops the edit mode immediately when it starts, but it has 2 side effects: - it results in a click (ie. the action assigned to clicking the dashboard item gets executed - it renders the icon with a white overlay that you can't get rid of (i guess that's the press down state)

Any ideas?


Viewing all articles
Browse latest Browse all 15

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>