Issue #3145Opened November 17, 2020by sashapawlow7260 reactions

FEAT: how to edit a button if the button has an action (opening a modal window)?

Question

I have a html template. the html template has a button. when you click on the button, an event occurs (opening a modal window). Is it possible to visually change the appearance of a button without firing an event? With allowScript: 0, I can edit the appearance of the button, but in this case, the event does not fire (opening a modal window). In case of allowScript: 1, an event is triggered (opening a modal window), but there is no way to edit the appearance of the button. There were ideas to switch between allowScript 0 and allowScript 1, but allowScript removes all js from the page.

Answers (1)

artfNovember 19, 20200 reactions

You have to create a custom component for that button if it requires custom logic/behavior from what the original HTML does

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.