Issue #2514✓ SolvedOpened January 19, 2020by ghost14 reactions

How to change device from dropdown to icon

Quick answerby Phil-B13

The above examples didn't work for me in version 0.17.28 (I presume the API has changed). This worked:

Read full answer below ↓

Question

I'm trying to replace the dropdown with icon for the devices following the example in the newsletter template yet it doesn't work.

Answers (3)

👍 Most helpfulPhil-BNovember 3, 2021

The above examples didn't work for me in version 0.17.28 (I presume the API has changed). This worked:

umerrinayatJanuary 31, 2020

@petervandeput https://github.com/artf/grapesjs/issues/1507#issuecomment-496280105 After grapesjs init. ```// Add device icons on panels bar editor.getConfig().showDevices = 0; editor.Panels.addPanel({ id: "devices-c" }).get("buttons").add([ { id: "set-device-desktop", command: function(e) { return...

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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.