Replies: 1 comment 1 reply
exportcad="utils.download('master_download.dxf', trigger('generate_content', [$event.job]), 'application/dxf')",
@trigger("generate_content")
def generate_content(self, job):
... |
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.
Hi guys,
At the moment I have this and it works well
vuetify.VBtn( icon="mdi-download", classes="flex-shrink-0", title="Download master DXF", aria_label="Download master DXF", click="utils.download('master_download.dxf', trigger('generate_content'), 'application/dxf')", )But I want to place the button that triggers this call inside a vue component and emit the event along with what file to download. How can is do this. (The backend fetches the contents)
So I typically do this in the vue component to emit the event from the button click but not sure how to wire it up to utils.download or equivalent
emit("exportcad", { job: jobToExportCAD.value });All reactions