Hi Patrick ,
Thanks for your reply . I got your point . But I have two components - Button and contextmenu . I want to access button Markup Id in Context Menu . When I am hardcoding it is fine . But how to access it dynamically ? . How this is possible ?
Button HTMl :
- Code: Select all
<div class="bts-button" id="{{::model.svyMarkupId}}" dx-button="ButtonOptions"
svy-click='handlers.onActionMethodID($event)'
svy-dblclick='handlers.onDoubleClickMethodID($event)'
svy-rightclick='handlers.onRightClickMethodID($event)'
sablo-tabseq='model.tabSeq'
ng-if="model.visible" ng-class="model.styleClass">
</div>
Context Menu Js :
- Code: Select all
$scope.api.show = function() {
$scope.contextMenuOptions = {
dataSource: contextMenuItems,
width: 200,
position: {
},
target:"#" + "3c30fc1c75040391183fcf65f0e058e9",
onItemClick: function(e){
if (!e.itemData.items) {
DevExpress.ui.notify("The \"" + e.itemData.text + "\" item was clicked", "success", 1500);
$scope.handlers.onActionMethodID(e.itemData.text);
}
}
}
}
Servoy JS :
- Code: Select all
elements.Context_Menu_1.show(elements.Button_2);
Please provide your suggestion