Replies: 1 comment 1 reply
-
|
If you want to convert it to a Media (extending SharpUploadModel) you must JSON decode + create an instance in the component. There is an example in the demo (in blade) : https://github.com/code16/sharp/blob/main/demo/resources/views/components/author.blade.php. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In a custom embed
I want to use the x-image-embed-component with the variables in this embed. However I would like to prepare the data in the component model
app/View/Components/imageEmbedComponent.phpIt does use the component blade but not its model. I am guessing that it has something to do with the rendering pipeline, but I after some time trying I ran out of ideas how to approach this.
I looked at
vendor/code16/sharp/src/View/Components/Image.phpand its component
resources/views/vendor/sharp/components/image.blade.phpDoes a "SharpFormEditorEmbed" extended instance only call anonymous components and have to use the transformers? If so how?
I am also looking for advice if you can spare one. Is this good practice for a project using sharp?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions