| @@ 9470-9489 (lines=20) @@ | ||
| 9467 | ariaPressed = typeof settings.active === 'boolean' ? ' aria-pressed="' + settings.active + '"' : ''; |
|
| 9468 | return '<div id="' + id + '" class="' + self$$1.classes + '" role="button"' + ariaPressed + ' tabindex="-1">' + '<button type="button" hidefocus="1" tabindex="-1">' + (icon ? '<i class="' + icon + '"' + image + '></i>' : '') + textHtml + '</button>' + '<button type="button" class="' + prefix + 'open" hidefocus="1" tabindex="-1">' + (self$$1._menuBtnText ? (icon ? '\xA0' : '') + self$$1._menuBtnText : '') + ' <i class="' + prefix + 'caret"></i>' + '</button>' + '</div>'; |
|
| 9469 | }, |
|
| 9470 | postRender: function () { |
|
| 9471 | var self$$1 = this, onClickHandler = self$$1.settings.onclick; |
|
| 9472 | self$$1.on('click', function (e) { |
|
| 9473 | var node = e.target; |
|
| 9474 | if (e.control === this) { |
|
| 9475 | while (node) { |
|
| 9476 | if (e.aria && e.aria.key !== 'down' || node.nodeName === 'BUTTON' && node.className.indexOf('open') === -1) { |
|
| 9477 | e.stopImmediatePropagation(); |
|
| 9478 | if (onClickHandler) { |
|
| 9479 | onClickHandler.call(this, e); |
|
| 9480 | } |
|
| 9481 | return; |
|
| 9482 | } |
|
| 9483 | node = node.parentNode; |
|
| 9484 | } |
|
| 9485 | } |
|
| 9486 | }); |
|
| 9487 | delete self$$1.settings.onclick; |
|
| 9488 | return self$$1._super(); |
|
| 9489 | } |
|
| 9490 | }); |
|
| 9491 | ||
| 9492 | var StackLayout = FlowLayout.extend({ |
|
| @@ 9278-9297 (lines=20) @@ | ||
| 9275 | ariaPressed = typeof settings.active === 'boolean' ? ' aria-pressed="' + settings.active + '"' : ''; |
|
| 9276 | return '<div id="' + id + '" class="' + self$$1.classes + '" role="button"' + ariaPressed + ' tabindex="-1">' + '<button type="button" hidefocus="1" tabindex="-1">' + (icon ? '<i class="' + icon + '"' + image + '></i>' : '') + textHtml + '</button>' + '<button type="button" class="' + prefix + 'open" hidefocus="1" tabindex="-1">' + (self$$1._menuBtnText ? (icon ? '\xA0' : '') + self$$1._menuBtnText : '') + ' <i class="' + prefix + 'caret"></i>' + '</button>' + '</div>'; |
|
| 9277 | }, |
|
| 9278 | postRender: function () { |
|
| 9279 | var self$$1 = this, onClickHandler = self$$1.settings.onclick; |
|
| 9280 | self$$1.on('click', function (e) { |
|
| 9281 | var node = e.target; |
|
| 9282 | if (e.control === this) { |
|
| 9283 | while (node) { |
|
| 9284 | if (e.aria && e.aria.key !== 'down' || node.nodeName === 'BUTTON' && node.className.indexOf('open') === -1) { |
|
| 9285 | e.stopImmediatePropagation(); |
|
| 9286 | if (onClickHandler) { |
|
| 9287 | onClickHandler.call(this, e); |
|
| 9288 | } |
|
| 9289 | return; |
|
| 9290 | } |
|
| 9291 | node = node.parentNode; |
|
| 9292 | } |
|
| 9293 | } |
|
| 9294 | }); |
|
| 9295 | delete self$$1.settings.onclick; |
|
| 9296 | return self$$1._super(); |
|
| 9297 | } |
|
| 9298 | }); |
|
| 9299 | ||
| 9300 | var StackLayout = FlowLayout.extend({ |
|