Skip to content
Gunjan Datta edited this page Oct 7, 2021 · 1 revision

Code Solution

Now that we have created and configured the project, it's time for the fun stuff...the code.

Source Code

  • src/strings.ts
  • src/cfg.ts - The configuration file for the project assets.
  • src/ds.ts - The methods used to interact with the list data.
  • src/app.ts - The code which renders the application.
  • src/index.ts - The main source file for the project which brings everything together.

Static Variables src/strings.ts

The static strings for the application.

Configuration File src/cfg.ts

All SharePoint assets will be defined here.

Data Source src/ds.ts

The data source will contain code related to getting data from SharePoint lists/libraries or configuration files.

Application src/app.ts

The main file which renders the application.

Main Source src/index.ts

The main source file will combine all of the project files together, into a global variable.