mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-05 16:47:37 -04:00
add warning about capabilities
This commit is contained in:
@@ -629,6 +629,13 @@ The "capabilities" property is an array of features that the connected watch mus
|
|||||||
in order for the item or section to be included in the page. Note: all capabilities in
|
in order for the item or section to be included in the page. Note: all capabilities in
|
||||||
the array must be present for item/section to be included.
|
the array must be present for item/section to be included.
|
||||||
|
|
||||||
|
**Warning:** Items that do not satisfy the capabilities will not be included in the page
|
||||||
|
at all. You will not be able to use methods like `clayConfig.getItemByAppKey()` to
|
||||||
|
obttain a reference to them. However, this does mean that you will be able to have
|
||||||
|
multiple items with the same `appKey`as long as they do not both satisfy the
|
||||||
|
same conditions.
|
||||||
|
|
||||||
|
|
||||||
##### Examples
|
##### Examples
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
|||||||
Reference in New Issue
Block a user