Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Hook up automatic dependency injection by first adding methods to the Portal gin injector class (see getYouTubeConfigEditor() and getYouTubeRenderer()).  
  •  Add a unique content type (to identify your widget) to WidgetConstants.   
  • Add code to the Widget Registrar Implementation that call the methods you added to the Portal gin injector (resolve content type to your editor and renderer).  Also register your widget in initWithKnownWidgets() method of this class.   
  • Add the new command to the menu (see EntityPropertyFormViewImpl.createWidgetMenu()).
  • (Optionally) Add css styles to Portal.css. These will be automatically applied to the div that surrounds your Widget (see youtubeDescriptor in Portal.css).  NOTE: The style name must match the content type that you specified in WidgetConstants.

...