Skip to content

Fancybox 5 and TypeScript - type 'userSlideType' #600

Answered by fancyapps
Divensky asked this question in Q&A
Discussion options

You must be logged in to vote

I'm sorry, but I don't know what to answer. The code is fine, everything works wonderfully as you can see in the demo (or any other demo you can find in the docs).

If you're stuck with TS4 (which is very buggy), then just throw in @ts-ignore and forget about it.

My modals seemed to work when I removed type: "inline". What does this attribute do? Could the lack of it cause unwanted behavior under certain conditions in the future?

The script can guess that you want to display an inline element because src starts with #. The src value can be any selector, but, if you use anything else, the script won't be able to guess correctly and you can specify the content type directly.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Divensky
Comment options

@fancyapps
Comment options

Answer selected by Divensky
@Divensky
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants