11<!-- omit in toc -->
22ember-element-query
33![ npm version] ( https://img.shields.io/npm/v/ember-element-query )
4- ![ GitHub Workflow Status ] ( https://img.shields.io/github/workflow/status /lolmaus/ember-element-query/CI )
5- ==============================================================================
4+ [ ![ CI ] ( https://github.com/lolmaus/ember-element-query/actions/workflows/ci.yml/badge.svg )] ( https://github.com /lolmaus/ember-element-query/actions/workflows/ci.yml )
5+ ===================
66
77* Use element queries effortlessly on any element or component.
88* Use it in the form of the ` {{element-query}} ` modifier or the ` <ElementQuery as |EQ|> ` component.
@@ -74,8 +74,16 @@ See [detailed comparison](#comparison) with code samples.
7474
7575
7676
77+ API Docs
78+ --------
79+
80+ https://lolmaus.github.io/ember-element-query/api/
81+
82+
83+
84+
7785Roadmap
78- ------------------------------------------------------------------------------
86+ -------
7987
8088This addon is in active development.
8189
@@ -117,7 +125,7 @@ This addon is in active development.
117125
118126
119127Rationale
120- ------------------------------------------------------------------------------
128+ ---------
121129
122130CSS media queries have a few disadvantages:
123131
@@ -153,7 +161,7 @@ Unfortunately, CSS is not aware of element's current width, so pseudoselectors l
153161
154162
155163Concept of sizes
156- ------------------------------------------------------------------------------
164+ ----------------
157165
158166` ember-element-query ` operates with * sizes* . "Sizes" are like T-shirt sizes, except they indicate element width.
159167
@@ -200,7 +208,7 @@ Here's an explicit sizes chart:
200208
201209
202210How ember-element-query works
203- ------------------------------------------------------------------------------
211+ -----------------------------
204212
205213` ember-element-query ` applies HTML attributes to an element indicating its current size.
206214
@@ -280,7 +288,7 @@ aside[at-m] {
280288
281289
282290Installation
283- ------------------------------------------------------------------------------
291+ ------------
284292
285293Use ` ember-cli ` to install the addon as usual:
286294
@@ -297,7 +305,7 @@ This addon does not do anything on install, so it can alternatively be installed
297305
298306
299307Usage
300- ------------------------------------------------------------------------------
308+ -----
301309
302310### As a modifier
303311
@@ -350,7 +358,7 @@ The second argument `EQInfo` is the same object that is passed to the [onResize
350358
351359
352360Advanced usage
353- ------------------------------------------------------------------------------
361+ --------------
354362
355363### onResize callback
356364
@@ -688,7 +696,7 @@ Unfortunately, this requires the parent to know which attributes are used in com
688696
689697
690698Browser support
691- ------------------------------------------------------------------------------
699+ ---------------
692700
693701** IE is not supported** because ` ember-element-query ` uses modern ECMAScript APIs.
694702
@@ -707,7 +715,7 @@ See [caniuse.com](https://caniuse.com/#feat=resizeobserver) for detailed stats.
707715
708716
709717Alternatives
710- ------------------------------------------------------------------------------
718+ ------------
711719
712720There are a few other Ember addons implementing element queries, such as:
713721
@@ -1073,7 +1081,7 @@ Given breakpoints 350, 700 and 1050:
10731081
10741082
10751083Contributing
1076- ------------------------------------------------------------------------------
1084+ ------------
10771085
10781086### Tools
10791087
@@ -1116,14 +1124,14 @@ For more information on using ember-cli, visit [https://ember-cli.com/](https://
11161124
11171125
11181126License
1119- ------------------------------------------------------------------------------
1127+ -------
11201128
11211129This project is licensed under the [MIT License](LICENSE.md).
11221130
11231131
11241132
11251133Credit
1126- ------------------------------------------------------------------------------
1134+ ------
11271135
11281136Initially implemented by Andrey Mikhaylov ([lolmaus](https://github.com/lolmaus)) and [contributors](https://github.com/lolmaus/ember-element-query/graphs/contributors).
11291137
0 commit comments