• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Step 2: Creating a Widget

Widgets are simply views of a field. Therefore, you place the widget code in the browser subpackage.

HTMLSourceWidget will use TextAreaWidget as a base, and only the converter method _toFieldValue(input) has to be reimplemented, so that it will remove any undesired tags from the input value. (Yes, this means that the validation of values coming through these widgets will always pass.)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint