From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Field customizer project
From the course: SharePoint Framework for Developers: 2 Authoring and Debugging Solutions
Field customizer project
- [Instructor] Now if you are familiar with SharePoint Framework project structures, this'll appear very at home to you. This'll appear very familiar. It's got all the necessary components, and as you can guess, our code is in the source folder. This is a Field Customizer. So let's go ahead and open the type script file, which is the actual logic for my customizer. As you can imagine, that it's declared as a class that inherits from a base class, a base Field Customizer class, which is strongly tied to the input values, our configuration information, for your customizer. In my case, this is represented as an interface, IHelloWorldFieldCustomeizerProperties. And there's a optional property here called sampleText. What are we doing with that sampleText? So in the on-in-it method, you can add whatever initialization code you want. Really, we're not doing much here, so it's just logging our information. So I'll jump over this. In the onRenderCell, this is where the interesting stuff…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.