Comments (4)
The documentation and example can use an update to demonstrate the options and retrieving the value.
I'm AFK but a change
action added to the input should help suraface the sliders value.
Try either of the following.
You'll need to add an action to capture the sliders value, name it anything you like. "sliderChanged" is just an example.
Edited: Corrected second example.
from ember-cli-foundation-6-sass.
@GCheung55 The first example isn't working and the second example isn't valid ember.
from ember-cli-foundation-6-sass.
@jamiechong sorry about that - bad copy/paste job. I've edited the second example.
from ember-cli-foundation-6-sass.
Looked into this some more. Sorry, but my two suggestions will not work. I couldn't find any Foundation-sites documentation for this, but their code sheds some light.
There are two main events that are triggered when the slider moves and changes: moved.zf.slider
and changed.zf.slider
. Both are triggered on the element. In Ember's case, it is the component's element.
Attaching event handlers is demonstrated in #72. You'll need to create a component that extends from zf-slider
and add a handleInsert
method.
Attaching event handlers manually like this is the only solution until zf
components support Foundation's events.
from ember-cli-foundation-6-sass.
Related Issues (20)
- ember-cli-foundation-6-sass don't work HOT 3
- Issues with ember 3.7
- Useless call to generator to install the dependencies
- Deprecation warning of Ember.$() in ember 3.9 HOT 12
- Fix breaking changes in FastBoot 1.0
- Foundation JS not triggered HOT 1
- Setup Travis CI and Homu HOT 6
- enabling prototype classes break sass compilation HOT 5
- zf-off-canvas does not support revealClass option. HOT 1
- Closeable Callout HOT 2
- tests fail when environment=production HOT 17
- Tests failling on ember-release channel and up
- Add appendTo option to zf-reveal.
- Top bar is broken HOT 1
- Is responsive topbar supported ? HOT 1
- Error: File to import not found or unreadable: foundation-sites/util/util (error in Ember 3.0)
- Import JavaScript modules
- Can't pass properties to zf-slider
- Can't find foundation-sites 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 ember-cli-foundation-6-sass.