Open Tibing opened 6 years ago
@Tibing
Could you elaborate why?
Hi @Prefix1802, I mean, this is a really common use case when you need to add debouncing on your inputs: search, filter, maybe error handling, whatever. And if input itself can't debounce its events you have to write rxjs every time you need debouncing. Anyway, it's just the proposal and has to be discussed.
@Tibing
I understand now. You said property ;), so we can use it as a parameter.
+1
How would you like to use the debounce property?
My thought would be a @Input() debounce: number;
where this would be the debounce rate in milliseconds?
I am trying my hand at contributing to awesome angular projects and I really fancy nebular and ngx-admin.
How would you like to use the debounce property?
My thought would be a
@Input() debounce: number;
where this would be the debounce rate in milliseconds?I am trying my hand at contributing to awesome angular projects and I really fancy nebular and ngx-admin.
Agree, and then use the debounce value to pipe the output such as on value change event.
@Tibing ,
Is this issue still open? I am interested to work on it?
and then provide a rxjs stream by @Output
?
but how we can access the input changes inside the nbInput directive?
@Prefix1802 @nnixaa @Tibing
I would like to work on this feature request. I am just starting off to contributing on open source projects on GitHub.
My Proposal:
@Input() debounce: number;
.@Output()
debouncedKeyup = new EventEmitter();
Please let me know if this is feasible.
Issue type
I'm submitting a ... (check one with "x")
I think we have to add debounce property to the nbInput directive.