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

center carousel item clicked??? #9

Closed
vikasgudi opened this issue Jun 18, 2018 · 1 comment
Closed

center carousel item clicked??? #9

vikasgudi opened this issue Jun 18, 2018 · 1 comment

Comments

@vikasgudi
Copy link

vikasgudi commented Jun 18, 2018

how to check whether the carousel item clicked , is the center carousel item or not?????

@kappys1
Copy link
Owner

kappys1 commented Jun 18, 2018

I think that is not a issue,

You can to do it to many ways
for example:

  • In html, if the .item-carousel is static, you can set a click event in the center carousel item.
  • Or if is content to load is dynamic you can set a click event in all items and in your controller check if is the center or not , knowing the length of content and passing the index of item clicked etc..
  • Or in html check if is the center item with *ngIf and generate a tag with click or not if it is.

I close the issue because I think this is not a issue but the people can help you.

If do you like the library, you can to give me a star =)
thanks

@kappys1 kappys1 closed this as completed Jun 18, 2018
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