Skip to content

Conversation

@valorkin
Copy link
Member

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

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

🤖 Generated with Claude Code

valorkin and others added 2 commits May 26, 2025 17:47
- Add typeaheadFilterFunction input property to TypeaheadDirective
- Allow users to provide custom filter logic via (option: any, query: string) => boolean function
- When custom filter is provided, use it instead of default testMatch logic
- Maintain backward compatibility - falls back to default filtering when no custom filter provided
- Add comprehensive unit tests for custom filter functionality
- Add E2E tests to verify custom filter behavior

Fixes #479

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 2, 2025

Deploying ngx-bootstrap with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5175e04
Status:🚫  Build failed.

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants