Skip to content

Magento2.4: How to show custom table data using knockoutJS?

Suppose I have a custom table and some fields like entity_id, code, title, description and image_path.
And I require that I want to show a drop-down (key=>value) on the custom page where some options will be shown and based on that selected option I want to show the records using knockout. whenever the user changes the value from the dropdown then the records from the database will be shown below.
The dropdown key will match with the table code column, which will be used to filter records.
If there are any questions, feel free to ask in the comments.
Any Idea Thanks.