[QUESTION] Is it possible to have different traits of component for different devices?
Question
I'm trying to create slider component which has trait like 'number of slides' and I want to have that trait different for all devices. For example: User can choose 5 slides for desktop and 2 for mobile.
Answers (1)
You should update component traits on device change
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1964
[QUESTION] Minimal requirements to create a custom component
I've been reading the docs all day on creating a custom component. I've also looked at grapesjs-mjml for an example. I'm trying to create a...
Issue #2188
[QUESTION] How to change tagName using traits.
Hello, I want to achieve this: When user clicks on a heading tag H1, H2, H3 ... I want a trait to appear (of a select / dropdown type) whic...
Issue #853
[QUESTION] Create Body's trait fixed
I'm trying to create two inputs (width and backgound-color) to template's body and I would like to fix it in Panel's view. When a component...
Issue #3500
Remove custom trait by its type.
I have created a custom trait but the name of that trait will be dynamic which is unknown. The problem is that the current removeTrait() on...
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.