Comments (9)
Sorry for the craziness. This is actually still an issue.
from bespoke.
I think your second idea is the best tradeoff of utility and size. Keeping it under 1KB could be tricky, but I can see that this would be a worthwhile change to core.
This is something I think I'll have to implement, since it touches everything- core APIs, tests, docs, and potentially other code will need to be optimised to fit in the 1KB limit.
from bespoke.
Awesome. I think you'll see my implementation in my pull request is pretty minimal and provides flexible functionality required by someone trying to discern by event type
from bespoke.
Yeah, thanks for the pull request. It looks to be following your first suggestion, but I think allowing custom event payloads would solve your problem in a much more minimal and flexible way, since it would allow you to provide metadata around calls to next
, prev
and slide
.
I've begun work on this already, and so far it's looking good.
from bespoke.
Awesome! Glad I could help :)
from bespoke.
I just pushed v0.2.0, which supports custom event data.
You can see an example of it in the readme: https://github.com/markdalgleish/bespoke.js#custom-event-data
Thanks for the feedback, I think this is a really useful feature :)
from bespoke.
w00t!
I see the example for .next()
and assume it works that way for .prev()
too. What's the method signature for slide, since that takes a number for the slide index? Is it .slide(index, eventOpts)
?
EDIT: a quick glance at the code shows me that this is, in fact, how you're handling it. Sweet!
from bespoke.
You can see the full deck API reference here: https://github.com/markdalgleish/bespoke.js#deck-instance-properties :)
from bespoke.
yep, RTFM. oops
from bespoke.
Related Issues (20)
- Minimal quickstart. HOT 6
- 不想用nodejs, 不能使用吗? HOT 3
- Presentations could use a watermark HOT 1
- IE11, slides not centered HOT 3
- Query About Dynamically Adding Slides HOT 1
- insert html code example HOT 1
- Activate not firing HOT 3
- Why not in Coffeescript? HOT 1
- Themes from the demo as bespoke-temes HOT 3
- Must order bespoke-classes before bespoke-scale HOT 2
- calling deck.next() or deck.prev() sometimes fails to call activate. HOT 1
- deck.slide(-1) should go to last slide HOT 5
- Add an off method
- Add control over which children become slides HOT 2
- Add infrastructure for help text HOT 2
- Destroy a Slide Deck HOT 2
- Question: Why use bespoke instead of reveal, strut, impress, etc ? HOT 4
- Yeoman install with PDF export fail HOT 3
- Don't activate first slide if slide is already active HOT 2
- how can i apply this to angular2?? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bespoke.