zf-slider component options and value #81
Comments
The documentation and example can use an update to demonstrate the options and retrieving the value. I'm AFK but a Try either of the following. {{input onchange=(action "sliderChanged" value="target.value")}} <input onchange={{action "sliderChanged" value="target.value"}}> 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. |
@GCheung55 The first example isn't working and the second example isn't valid ember. |
@jamiechong sorry about that - bad copy/paste job. I've edited the second example. |
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: Attaching event handlers is demonstrated in #72. You'll need to create a component that extends from Attaching event handlers manually like this is the only solution until |
How can I set the option in the
{{zf-slider}}
component so I can specifydata-start
,data-end
,data-step
,data-initial-start
, etc?Furthermore, how can I access the value that is set in the
<input>
?It seems like all we get is the UI, which is useless unless its functional. Could you provide a better example of this component?
The text was updated successfully, but these errors were encountered: