Skip to content
Example of creating a new widget, extending from an existing ArcGIS Web AppBuilder widget in the process to reduce code duplication.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
widgets/CustomEditor do not need a copy of the OOTB widget Feb 14, 2017
.babelrc
.editorconfig initial example widget Feb 14, 2017
.gitignore do not need a copy of the OOTB widget Feb 14, 2017
.yo-rc.json
Gruntfile.js initial example widget Feb 14, 2017
README.md initial example widget Feb 14, 2017
package.json initial example widget Feb 14, 2017

README.md

web-appbuilder-extend-widget-example

Example of creating a new widget, extending from an existing ArcGIS Web AppBuilder widget in the process to reduce code duplication.

How to Extend

Example Widget

This is an example of extending from the Web AppBuilder "Editor" widget - a hypothetical problem where you want to prevent the user from moving a point outside of a boundary (St. Louis, MO in this case).

You can see we extend from the Editor widget (We have checked in the widget's code for convenice, but we never ever make modifications to any of the code in that folder), include the css and nls, and then override the _createEditor function, being sure to call this.inherited(arguments).

You can’t perform that action at this time.