Custom widget for responsive images: Implement the client side of the ResponsiveImage widget designer
You need to get the ID of the selected image and pass it from the designer to the widget. This is achieved on the client-side by the applyChanges method.
In Visual Studio, perform the following:
- Name the file ResponsiveImageDesigner.js
- Right-click on the js file and set the Build Action property to Embedded Resource.
- Expand the Properties folder of the ResponsiveImages class library and click to edit the AssemblyInfo.cs.
- Add the following line:
EXAMPLE: For more information about the content of the file, see the ResponsiveImageDesigner.js file of the downloaded sample project.
- Build you solution.