Style Sectors
Question
hi @artf is there any way to setup style sectors for different devices mobile and desktop i want to disable style sectors in Desktop if style is setup from mobile and other thing as you can see my screenshot i add new button in panel 'view' i m trying to append diff style sectors in this button please help me out @artf .Thanks

Answers (3)
Sorry but there is no built-in configuration for such a thing, the only thing I can suggest is to start with this listener
editor.on('change:device', () => {
console.log('new device', editor.getDevice());
})
okie @artf thanks for your suggestion :)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #599
Set Device Height along with Device Width
Hi I want to add new devices with both width and height, Is there any way I can do this? An other issue is that when I give width of device...
Issue #1318
Question: How to enable Event of mouse to increase value of input
hi @artf I want to know Is there any way to enable input mouse scroller in style manager as you can my screenshot. i want to initalize scro...
Issue #1117
External Elements can drag and drop in canvas?
Hi Artf Actually there is no issue. we are using grapesjs in a different way. We are not using header and sidebars of grapesjs we are perfo...
Issue #1307
Question: To stop dynamically generated classes in grapes Editor
Hi @artf is there any Way to stop dynamically generating classes on reloading editor. let say when i add my custom class i.e "my_class" to...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.