Issue #2704✓ SolvedOpened April 6, 2020by sdrebel2 reactions

Compoentn getScript

快速解答by pouyamiralayi2

Hi @sdrebel you can retrieve any model property by calling `get` function: Cheers!

Read full answer below ↓

Question

Hi @artf ,

The way we get component.getStyle() do we have any method to get scripts or events attached to the component?

Answers (3)

👍 Most helpfulpouyamiralayiApril 7, 2020

Hi @sdrebel you can retrieve any model property by calling get function:

component.get('script')

Cheers!

sdrebelApril 9, 2020

@pouyamiralayi will this give if scripts are in jquery? I tried this it returned null.

pouyamiralayiApril 9, 2020

@sdrebel if you have specified any script, it should return a string containing the script code. Cheers!

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.