I am trying Semantic UI “search” type “category” example by using Local content, but it is not working, I think local JSON content format is wrong. can anybody whats wrong with code or JSON format.
HTML CODE:-
JS:- var content = { “category1”: { “name”: “Category 1”, “results”: [ { “title”: “Result1 Title”, “description”: “Option1 Description” }, { “title”: “Result2 Title”, “description”: “Option2 Description” } ] }, “category2”: { “name”: “Category 2”, “results”: [ { “title”: “Result3”, “description”: “Option3 Description” } ] } };
$ (‘.ui.search’).search({ source : content, type : ‘category’ });