Adds `directive` setting to example widget.