Guest User

Untitled

a guest
Jan 13th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. export async function setSelectConfiguration(
  2. filenameJson: string, storeData: (str: string) => void, element: JQuery,
  3. listenerFunction:(e: JQueryEventObject) => void) {
  4. await d3.json("filename2.json", function(error, data) {
  5. if(error) {
  6. console.log(error);
  7. } else {
  8. console.log(data);
  9. storeData(data.toString())
  10. }
  11. });
  12. element.on("change", listenerFunction);
  13. }
  14.  
  15. {
  16. "files": [
  17. {
  18. "name": "time_sensitive_test.json",
  19. "type": "user",
  20. "owner": "Master",
  21. "data_type": "linear data",
  22. "description": "Utenti master (Enrica) periodo 20/05/2014-16/10/2014",
  23. "ids_description": "accesso risorse",
  24. "ods_description": "chat/forum",
  25. "bds_description": "login/logout"
  26. }
  27. ]}
Add Comment
Please, Sign In to add comment