maglevhq / maglev-core

Ruby on Rails website builder
https://www.maglev.dev
MIT License
273 stars 47 forks source link

How to modify frontend editor files #76

Closed guerreiropedr0 closed 7 months ago

guerreiropedr0 commented 8 months ago

I am trying to make it possible to view the entire collection_item records when the select input is empty, instead of showing no records. I wanted to override the js files so it triggers the fetch when it is empty

Is this currently possible?

did commented 7 months ago

@guerreiropedr0 ATM, this is not possible to override a JS component.

I see 2 solutions to solve your problem:

The first solution is definitively the easiest one and if you know a bit about Ruby and JS, you should be able to do it.

The second one requires some intense thinking :-) Probably it would make sense to extract the editor JS code from the Maglev-core and create its own NPM package.