cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ManishM
Microsoft
Microsoft

DelayOutput property of TextInput control

Is there any documentation for this property?

1 ACCEPTED SOLUTION

Accepted Solutions
mr-dang
Community Champion
Community Champion

I'm not sure about documentation, but in my experience using it, there is about a second delay before any changes to the TextInput control are detected after typing and clicking out/pressing Enter/pressing Tab. It just takes true/false as an argument.

 

For instance, I have a Gallery whose Items are Filtered depending on what is inputted into the TextInput control.

  • With DelayOutput set to false, which is default, the Gallery will be filtered as soon as any text is typed. If you have a gallery with lots of items, reloading the Gallery with changes right away slows down performance; it would be more advantageous to wait a little. This is practical when you are using the TextInput for a search string (See Search or the new StartsWith functions).
  • With DelayOutput set to true, there is a second delay before the changes are detected. This is done to give you time to finish typing what you want. The delay works well when used to aid the TextInput.OnChange property. If you have actions tied to changes, you don't want them triggered until everything you want is typed into the field. 

There is no direct way to adjust the delay's duration, but I imagine you could use the TextInput.OnChange property to trigger a Timer control to start. Upon Timer.OnTimerEnd, it will activate whatever actions you intended. Set the Timer's duration to whatever you need.

 

Microsoft Employee
@8bitclassroom

View solution in original post

2 REPLIES 2
mr-dang
Community Champion
Community Champion

I'm not sure about documentation, but in my experience using it, there is about a second delay before any changes to the TextInput control are detected after typing and clicking out/pressing Enter/pressing Tab. It just takes true/false as an argument.

 

For instance, I have a Gallery whose Items are Filtered depending on what is inputted into the TextInput control.

  • With DelayOutput set to false, which is default, the Gallery will be filtered as soon as any text is typed. If you have a gallery with lots of items, reloading the Gallery with changes right away slows down performance; it would be more advantageous to wait a little. This is practical when you are using the TextInput for a search string (See Search or the new StartsWith functions).
  • With DelayOutput set to true, there is a second delay before the changes are detected. This is done to give you time to finish typing what you want. The delay works well when used to aid the TextInput.OnChange property. If you have actions tied to changes, you don't want them triggered until everything you want is typed into the field. 

There is no direct way to adjust the delay's duration, but I imagine you could use the TextInput.OnChange property to trigger a Timer control to start. Upon Timer.OnTimerEnd, it will activate whatever actions you intended. Set the Timer's duration to whatever you need.

 

Microsoft Employee
@8bitclassroom

Sounds right! Thanks for explaining 🙂

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Top Kudoed Authors
Users online (2,373)