Book Image

Team Foundation Server 2015 Customization

By : Gordon Beeming
Book Image

Team Foundation Server 2015 Customization

By: Gordon Beeming

Overview of this book

Table of Contents (17 chapters)
Team Foundation Server 2015 Customization
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a web control for the web access


So we've built a control for people who use Visual Studio, Microsoft Test Manager, and other client applications that show the work item form. But the web access is probably the place where your control will be used the most, so let's make it custom control.

The code for our custom control

Similar to the client control, the web control has a manifest/helper file. This time, it's named manifest.xml. In your same class library project, create a folder named web and then create the following files in it:

  • manifest.xml (XML file)

  • TitleStrengthIndicator.TfsTitleStrengthIndicator.debug.js (JavaScript file)

  • TitleStrengthIndicator.TfsTitleStrengthIndicator.min.js (JavaScript file)

Note that the JavaScript files start with the full class name that was used in the client control (namespace and class name). We'll start off by adding content to our manifest.xml file:

<WebAccess version="14.0">
  <plugin name="Title Strength Indicator - Web Access" 
    ...