--- title: Dropdowns ---
Select One One Two Three Four Five
Type aaa to see a result set or three letters of any kind to view another
aaa
Photos
Organizations HTML in selection Type aaa to see a result set or three letters of any kind to view another Photos Set Reset import picturesFormatResult from './picturesResultFormat'; demo.factory('demoDropdownService', ($log, demoDropdownResource) => { class DemoDropdownService { ... getOptions() { return { allowClear: true, placeholder: 'Find a photo', minimumInputLength: 3, query: demoDropdownResource, formatResult: picturesFormatResult, formatSelection: picturesFormatResult }; } ... } return new DemoDropdownService(); }); // picturesResultFormat.js export default (item) => { return ` ${item.text} `; };
import picturesFormatResult from './picturesResultFormat'; demo.factory('demoDropdownService', ($log, demoDropdownResource) => { class DemoDropdownService { ... getOptions() { return { allowClear: true, placeholder: 'Find a photo', minimumInputLength: 3, query: demoDropdownResource, formatResult: picturesFormatResult, formatSelection: picturesFormatResult }; } ... } return new DemoDropdownService(); }); // picturesResultFormat.js export default (item) => { return ` ${item.text} `; };