Lines Matching refs:btn
1575 var btn = document.createElement('a');
1576 btn.className = (urlParams['sketch'] == '1') ? 'geToolbarButton' : 'geMenuItem';
1577 btn.style.display = 'inline-block';
1578 btn.style.boxSizing = 'border-box';
1579 btn.style.height = '30px';
1580 btn.style.padding = '6px';
1581 btn.style.position = 'relative';
1582 btn.style.verticalAlign = 'top';
1583 btn.style.top = '0px';
1587 btn.style.borderStyle = 'none';
1588 btn.style.boxShadow = 'none';
1589 btn.style.padding = '6px';
1590 btn.style.margin = '0px';
1595 menubar.insertBefore(btn, ui.statusContainer);
1599 menubar.appendChild(btn);
1604 btn.style.backgroundImage = 'url(' + img + ')';
1605 btn.style.backgroundPosition = 'center center';
1606 btn.style.backgroundRepeat = 'no-repeat';
1607 btn.style.backgroundSize = '24px 24px';
1608 btn.style.width = '34px';
1612 mxUtils.write(btn, label);
1616 mxEvent.addListener(btn, (mxClient.IS_POINTER) ? 'pointerdown' : 'mousedown',
1622 mxEvent.addListener(btn, 'click', function(evt)
1624 if (btn.getAttribute('disabled') != 'disabled')
1634 btn.style.marginRight = '4px';
1639 btn.setAttribute('title', tooltip);
1648 btn.removeAttribute('disabled');
1649 btn.style.cursor = 'pointer';
1653 btn.setAttribute('disabled', 'disabled');
1654 btn.style.cursor = 'default';
1663 return btn;