UI for Zipcoin Blue

reorder.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. import { Component, ElementRef, HostListener } from '@angular/core';
  2. import { findReorderItem } from './item-reorder-util';
  3. /**
  4. * @hidden
  5. */
  6. var Reorder = (function () {
  7. function Reorder(elementRef) {
  8. this.elementRef = elementRef;
  9. elementRef.nativeElement['$ionComponent'] = this;
  10. }
  11. Reorder.prototype.getReorderNode = function () {
  12. return findReorderItem(this.elementRef.nativeElement, null);
  13. };
  14. Reorder.prototype.onClick = function (ev) {
  15. // Stop propagation if click event reaches ion-reorder
  16. ev.preventDefault();
  17. ev.stopPropagation();
  18. };
  19. Reorder.decorators = [
  20. { type: Component, args: [{
  21. selector: 'ion-reorder',
  22. template: "<ion-icon name=\"reorder\"></ion-icon>"
  23. },] },
  24. ];
  25. /** @nocollapse */
  26. Reorder.ctorParameters = function () { return [
  27. { type: ElementRef, },
  28. ]; };
  29. Reorder.propDecorators = {
  30. 'onClick': [{ type: HostListener, args: ['click', ['$event'],] },],
  31. };
  32. return Reorder;
  33. }());
  34. export { Reorder };
  35. //# sourceMappingURL=reorder.js.map