From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Command set project template

Command set project template

From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions

Start my 1-month free trial

Command set project template

- [Instructor] With our project created and yarn install or npm install done, now let's look at the structure of our project. As usual, if you have seen one SharePoint Framework project, this should appear very, very familiar to you. Let's look at the source folder and in here is there my command set extension list. As usual, this inherits from a base class. This time the BaseListViewCommandSet strongly typed to the properties that are specific to my command set. There are two properties, sampleTextOne, sampleTextTwo. Also note that this BaseListViewCommandSet is being imported from a different node module. If you go down here, in the source code, I have apparently two commands. You might be wondering where are those commands declared? The string COMMAND_1, COMMAND_2. I'll get to that in a second. But at this point, you can see that when the user executes the command, we get to see what command has been executed and then we can act upon it accordingly. And then, right now we're just…

Contents