-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
How to select an Item onClick or Ontap #51
Comments
Tap or click on slides is working now |
Thats great. Thank you. |
Hi, I'm not sure if I'm missing a point. I'm expecting the item to be centered when selected. sliderSettings: {
"centerMode": true,
"focusOnSelect": true,
"infinite": false,
"dots": true,
"arrows": false,
"speed": 500,
"slidesToScroll": 1,
"slidesToShow": 5,
"responsive": [
{
"breakpoint": 1024,
"settings": {
// same as defaults but with different `slidesToShow`
}
},
{
"breakpoint": 600,
"settings": {
// same as defaults but with different `slidesToShow`
}
},
{
"breakpoint": 480,
"settings": {
// same as defaults but with different `slidesToShow`
}
},
]
} initializing: <Slider {...sliderSettings}>
{
this.props.items.map((item) =>
<div key={item.title}>
<Item {...item} />
</div>
)
}
</Slider> where <div>
<h3>
{this.props.title}
</h3>
<p>
{this.props.description}
</p>
</div> |
scriptype
added a commit
to scriptype/react-slick
that referenced
this issue
Oct 18, 2015
- Add an example of focusOnSelect usage to demos - Update supported properties table - Use ReactDOM on rendering demos
jasonsalzman
added a commit
to jasonsalzman/react-slick
that referenced
this issue
Apr 26, 2016
* 148: Support `focusOnSelect` fixes akiran#51 - Add an example of focusOnSelect usage to demos - Update supported properties table - Use ReactDOM on rendering demos Conflicts: README.md src/track.jsx
jasonsalzman
added a commit
to jasonsalzman/react-slick
that referenced
this issue
Apr 26, 2016
* original/master: build fix invalid currentSlide state with {infinite: true, autoplay: true, useCSS: true} add back child's className prop when cloning pre/post slides in infinite mode Support `focusOnSelect` fixes akiran#51 - Add an example of focusOnSelect usage to demos - Update supported properties table - Use ReactDOM on rendering demos Conflicts: dist/react-slick.js dist/react-slick.min.js src/track.jsx
abpai
pushed a commit
to finboxio/react-slick
that referenced
this issue
Jul 24, 2016
- Add an example of focusOnSelect usage to demos - Update supported properties table - Use ReactDOM on rendering demos
suheb
pushed a commit
to suheb/react-slick
that referenced
this issue
Aug 16, 2016
- Add an example of focusOnSelect usage to demos - Update supported properties table - Use ReactDOM on rendering demos
suheb
pushed a commit
to suheb/react-slick
that referenced
this issue
Aug 16, 2016
- Add an example of focusOnSelect usage to demos - Update supported properties table - Use ReactDOM on rendering demos
suheb
pushed a commit
to suheb/react-slick
that referenced
this issue
Aug 16, 2016
- Add an example of focusOnSelect usage to demos - Update supported properties table - Use ReactDOM on rendering demos
suheb
pushed a commit
to suheb/react-slick
that referenced
this issue
Aug 16, 2016
- Add an example of focusOnSelect usage to demos - Update supported properties table - Use ReactDOM on rendering demos
suheb
pushed a commit
to suheb/react-slick
that referenced
this issue
Aug 16, 2016
- Add an example of focusOnSelect usage to demos - Update supported properties table - Use ReactDOM on rendering demos
drdah123
pushed a commit
to drdah123/react-slick
that referenced
this issue
Apr 16, 2023
Bumps [jest](https://github.com/facebook/jest) from 24.9.0 to 26.4.2. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](jestjs/jest@v24.9.0...v26.4.2) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to use this, but need support for onClick and onTap event. When clicked that item should be selected. I see a option focusOnselect but it not seems to work
like in following image
The text was updated successfully, but these errors were encountered: