debounce-mobile

Debounce Mobile

Deprecated
Stable version 1.0.0 (Compatible with OutSystems 11)
Published on 01 July 2019 by 
0.0
 (0 ratings)
debounce-mobile

Debounce Mobile

Details
Adds a web block that enables debouncing on an input field.
Read more

THIS COMPONENT HAS BEEN REPLACED BY A NEW APPLICATION. PLEASE USE THIS ONE INSTEAD: 

https://www.outsystems.com/forge/component-overview/8272/debounce

----

A debounce limits the rate at which a function can fire. An example would be querying an API for project names. You have a search field and you query the API every time you input a character into the input field. Although this is not a difficult task it will produce unneeded calls since the user isn't probably done typing in its search key. Therefor we wait a small duration after each character typed before triggering the API call. Every keystroke resets the timer and prevents the API from being called.

Usage:

  • Place the web block after the input field in question
  • Fill in the widget id of the input field
  • (optional) Fill in a wait duration (default is 350ms)
  • Create a client action for the RunAction event and define your query logic in this client action

Demo app is available.

Based upon the "Client Side Validation" component.

What’s new (1.0.0)
Reviews (0)
More from Vincent Koning