When I have a featureAction in my widget, the onExecute method, when is executed?
I know that Is not when I open the widget, somebody knows when?
Solved! Go to Solution.
Rolando,
You have to build one yourself. You can look at the eSearch widget for an example of this.
Widget.html:
<div class="popup-menu-button esearch-result-action-button" data-dojo-attach-event="click:_onBtnMenuClicked" data-dojo-attach-point="divOptions" title="${nls.resultactions}"
style="display:none;"></div>
Widget.js:
_onBtnMenuClicked: function(evt){
var position = html.position(evt.target || evt.srcElement);
var featureSet = this._getFeatureSet();
.....
Rolando,
When the custom FeatureAction is clicked. It depends if the FeatureAction is added to the popup menu or a menu in the widget itself.
Robert, and how can I use a menu in the widget itself.?
Rolando,
You have to build one yourself. You can look at the eSearch widget for an example of this.
Widget.html:
<div class="popup-menu-button esearch-result-action-button" data-dojo-attach-event="click:_onBtnMenuClicked" data-dojo-attach-point="divOptions" title="${nls.resultactions}"
style="display:none;"></div>
Widget.js:
_onBtnMenuClicked: function(evt){
var position = html.position(evt.target || evt.srcElement);
var featureSet = this._getFeatureSet();
.....