SHARE
TWEET

Untitled

a guest Jun 25th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (Environment.type === EnvironmentType.Local) {  
  2.     this._getMockListData().then((response) => {  
  3.       this._renderList(response.value);  
  4.     });  
  5.   }  
  6.    else
  7.    {  
  8.      this._getListData()  
  9.     .then((response) => {  
  10.       this._renderList(response.value);  
  11.     });  
  12.  }
  13.      
  14. items.forEach((item: ISPList) => {  
  15.   html += `  
  16.  
  17.     <div align="center">  ${item.Quote}</div>
  18.       <div align="right"> ${'-'}  ${item.Title}</div>
  19.  
  20.       `;  
  21. });  
  22. html += `</table>`;  
  23. const listContainer: Element = this.domElement.querySelector('#spListContainer');  
  24. listContainer.innerHTML = html;
  25.      
  26. ]  
  27.         };  
  28.     return listData;  
  29. }) as Promise<ISPLists>;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top