Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties for disable export to PDF and XLSX #55

Closed
JosefJezek opened this issue Mar 15, 2017 · 2 comments
Closed

Properties for disable export to PDF and XLSX #55

JosefJezek opened this issue Mar 15, 2017 · 2 comments

Comments

@JosefJezek
Copy link

I would like disable export to PDF and XLSX. I have custom menu, but I can not disable loading libs.

@maertz
Copy link
Collaborator

maertz commented Mar 15, 2017

You can disable "autoLoad" in your libs setup to manually load your dependencies or overwrite the resources list to your needs

{
	...
	export: {
		enabled: true,
		libs: {
			resources: [ "fabric.js/fabric.min.js", "FileSaver.js/FileSaver.min.js", {
				"jszip/jszip.min.js": [ "xlsx/xlsx.min.js" ],
				"pdfmake/pdfmake.min.js": [ "pdfmake/vfs_fonts.js" ]
			} ]
		}
	}
}

The object values are used to determine the dependency of an resource.

@JosefJezek
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants