Issue #785💬 AnsweredOpened January 22, 2018by lypliuyinping0 reactions

Make a button component

Quick answerby JulyanoF

Hello @lypliuyinping You can create custom blocks like this:

Read full answer below ↓

Question

Hello, I want to do a button component, click on the button, it will pop up a dialog box that contains some text boxes and OK and Cancel button, click OK and Cancel button will perform different functions, may I ask how to achieve this? Thank you for your answer

Answers (3)

JulyanoFJanuary 22, 2018

Hello @lypliuyinping You can create custom blocks like this:

lypliuyinpingJanuary 22, 2018

@JulyanoF Firstly, thank you very much for your reply! Then, I would like to ask, how to achieve the button click event? For example: Click the button to bring up the text box.

JulyanoFJanuary 22, 2018

Are you using bootstrap? Or another js lib to create a dialog box?

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.