query-all.d.ts 881 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * @license
  3. * Copyright 2017 Google LLC
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. import { ReactiveElement } from '../reactive-element.js';
  7. /**
  8. * A property decorator that converts a class property into a getter
  9. * that executes a querySelectorAll on the element's renderRoot.
  10. *
  11. * @param selector A DOMString containing one or more selectors to match.
  12. *
  13. * See:
  14. * https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll
  15. *
  16. * ```ts
  17. * class MyElement {
  18. * @queryAll('div')
  19. * divs;
  20. *
  21. * render() {
  22. * return html`
  23. * <div id="first"></div>
  24. * <div id="second"></div>
  25. * `;
  26. * }
  27. * }
  28. * ```
  29. * @category Decorator
  30. */
  31. export declare function queryAll(selector: string): (protoOrDescriptor: ReactiveElement | import("./base.js").ClassElement, name?: PropertyKey | undefined) => any;
  32. //# sourceMappingURL=query-all.d.ts.map