angularjs - Semantic ui search module -


i using semantic ui search module, content remote json file, can make work no matter typed whether found or not, show list json file.

script

$('.ui.search')   .search({     apisettings: {       url: 'http://localhost/api/materialmaster.json'     },     fields: {       results : 'data',       title : 'matcode'     },     mincharacters : 2   }) ; 

json file format is

{"data":[{"matcode":"0a66244s1"},{"matcode":"200gd0s100150cm"}]} 

see if can help. had same problem , solved using instructions.

https://stackoverflow.com/a/32937262/5381965


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -