Issue #1928Opened March 27, 2019by Ericson19910 reactions

[QUESTIONS] Change the Onclick event to Hover when select objects

Question

Can I change the onclick event to hover when select objects and display a toolbar?

hover

Answers (3)

artfMarch 30, 20190 reactions

You might need to extend the SelectComponent command (take a look at toggleSelectComponent method)

afdallahApril 1, 20190 reactions

@artf Is there any example on how to extend the SelectComponent?

artfApril 3, 20190 reactions

mmm not really, I hope to publish soon a general doc about Commands. BTW it's just about getting the command (https://grapesjs.com/docs/api/commands.html#get) and overwriting its method

const myCommand = commands.get('select-comp');
myCommand.someMethod = function() {
	// ...
};

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.