Giter Site home page Giter Site logo

ember-debounced-input-helpers's Introduction

Ember Debounced Input Helpers

Build Status npm version Dependency Status

Installation

ember install ember-debounced-input-helpers

Looking for help?

If it is a bug please open an issue on GitHub.

Usage

Common Options

  • val: The bound value to be debounced
  • wait: Number of milliseconds to wait. Defaults to 500
  • immediate: Trigger the setting val on the leading instead of the trailing edge of the wait interval. Defaults to false.
  • sync:Usually debounced properties are one way, if you plan to manually update val, this will keep val and value in sync. Defaults to false.

debounced-input

Extended from Ember.TextField which allows it to take any of the attributes listed here

{{debounced-input val=val wait=500 immediate=false sync=true}}

debounced-textarea

Extended from Ember.TextArea which allows it to take any of the attributes listed here

{{debounced-textarea val=val wait=500 immediate=false sync=true}}

debounced-value

There are many times where you might have your own input component or you're using a 3rd party addon that needs to be debounced.

{{#debounced-value val=date wait=500 immediate=false sync=true as |value|}}
  {{date-picker startDate=value}}
{{/debounced-value}}

The debounced-value component yields the raw value which you can place anywhere in the block.

ember-debounced-input-helpers's People

Contributors

ember-tomster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ember-debounced-input-helpers's Issues

closure actions

Hi,

I am using an input like this:

<input type="number" value={{height}} oninput={{action changeHeight value="target.value"}} />

That I need debounced. I am currently doing so in javascript but was looking at this addon. It would be nice if the debounced-input supported closured actions if you agree. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.