examples/browser/app.js
function searchUsers(searchStr){
    console.log('getUsers called');
    if(!searchStr){
      searchStr = document.getElementById('search').value;
    }
    grout.Users.search(searchStr).then(function(users){
      console.log('search users loaded:', users);
      document.getElementById("search-output").innerHTML = JSON.stringify(users);
    });
  }
function searchUsers(searchStr){
    console.log('getUsers called');
    if(!searchStr){
      searchStr = document.getElementById('search').value;
    }
    grout.Users.search(searchStr).then(function(users){
      console.log('search users loaded:', users);
      document.getElementById("search-output").innerHTML = JSON.stringify(users);
    });
  }
function searchUsers ( searchStr ) { console . log ( 'getUsers called' ) ; if ( ! searchStr ) { searchStr = document . getElementById ( 'search' ) . value ; } grout . Users . search ( searchStr ) . then ( function ( users ) { console . log ( 'search users loaded:' , users ) ; document . getElementById ( "search-output" ) . innerHTML = JSON . stringify ( users ) ; } ) ; }
Search users based on a provided string
Search users based on a provided string