Skip to content

sc-search is an custom element to generic searches based in a preset model.

Notifications You must be signed in to change notification settings

siscomando/sc-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sc-search

sc-search is an custom element to generic searches based in a preset model.

Usage

The sc-search uses the core-ajax component to search.

    <sc-search url="http://api.randomuser.me/"></sc-search>
    // you can to listen the results. It's asynchronous.
    <script>
    ...
    search = document.querySelector('sc-search');
    search.addEventListener('sc-response', 
           function(e){ 
               console.log(e.detail.response['SCOPE'])
            }); 
    ...
    </script>

About

sc-search is an custom element to generic searches based in a preset model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published