New Metronic Docs!Added Integration Docs with Starter Kits Apps for Laravel, Laravel Livewire, Angular, Vue, Symfony, Blazor Server, Django & Flask & more
Browse Docs

KTUI DataTable in Angular 20 – How to use search() with remote API data source?


We are using the KTUI DataTable component in Metronic with Angular 20 and a remote API data source, and we need to implement the search functionality.
The documentation mentions the search(query: string | object) method, but it does not clearly explain how to invoke it or how to bind it to a custom input field outside of the table.
Could you please provide a complete Angular-based example showing how to use search() to filter rows when the table data is loaded from a remote API?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (0)