ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

feat(typeahead): add support for custom filter function

Open valorkin opened this issue 5 months ago • 0 comments

Summary

  • Add support for custom filter functions in typeahead directive
  • Developers can now provide custom filtering logic via typeaheadFilterFunction input
  • Function signature: (option: any, query: string) => boolean
  • Maintains full backward compatibility with existing default filtering

Test plan

  • [x] Custom filter function works with complex filtering logic
  • [x] Default filtering still works when no custom filter provided
  • [x] Unit tests cover custom filter functionality and edge cases
  • [x] E2E tests verify behavior in real browser environment
  • [x] No regressions in existing typeahead functionality

🤖 Generated with Claude Code

valorkin avatar May 26 '25 15:05 valorkin