|
发表于 2017-7-5 16:57:29
|
显示全部楼层
- Model.prototype.button18Click = function(event) {
- var parentNode = this.getElementByXid("top1");
- var option = {
- parentNode : parentNode,
- xid : 'popMenu1',
- class : 'x-popMenu',
- anchor : 'button18',
- dismissible : true,
- autoHidable : true,
- opacity : '0.1'
- };
- var popMenu1 = new popMenu(option);
- var menu = popMenu1.getInnerMenu().addItem({
- label : "Item",
- xid : "buttonMenu1"
- });
- this.comp("buttonMenu1").on("onClick", function(event) {
- alert(event.source.get('label'));
- });
- popMenu1.show();
- };
复制代码 |
|