Skip to content

Commit c23295c

Browse files
doc(elements): pos-list update
1 parent 86c379f commit c23295c

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

docs/elements/components/pos-list/readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,18 @@
44

55
## Properties
66

7-
| Property | Attribute | Description | Type | Default |
8-
| -------- | --------- | ----------------------------------------------------------------- | --------- | ----------- |
9-
| `fetch` | `fetch` | Whether listed resources should be fetched before being displayed | `boolean` | `false` |
10-
| `rel` | `rel` | URI of the predicate to follow | `string` | `undefined` |
7+
| Property | Attribute | Description | Type | Default |
8+
| ---------- | ----------- | ----------------------------------------------------------------- | --------- | ----------- |
9+
| `fetch` | `fetch` | Whether listed resources should be fetched before being displayed | `boolean` | `false` |
10+
| `ifTypeof` | `if-typeof` | URI of a class for which instances will be listed | `string` | `undefined` |
11+
| `rel` | `rel` | URI of the predicate to follow | `string` | `undefined` |
1112

1213

1314
## Events
1415

1516
| Event | Description | Type |
1617
| ----------------- | ----------- | ------------------ |
18+
| `pod-os:init` | | `CustomEvent<any>` |
1719
| `pod-os:resource` | | `CustomEvent<any>` |
1820

1921

elements/src/components.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ export namespace Components {
8383
* Whether listed resources should be fetched before being displayed
8484
*/
8585
"fetch": boolean;
86+
/**
87+
* URI of a class for which instances will be listed
88+
*/
89+
"ifTypeof": string;
8690
/**
8791
* URI of the predicate to follow
8892
*/
@@ -570,6 +574,7 @@ declare global {
570574
};
571575
interface HTMLPosListElementEventMap {
572576
"pod-os:resource": any;
577+
"pod-os:init": any;
573578
}
574579
interface HTMLPosListElement extends Components.PosList, HTMLStencilElement {
575580
addEventListener<K extends keyof HTMLPosListElementEventMap>(type: K, listener: (this: HTMLPosListElement, ev: PosListCustomEvent<HTMLPosListElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -1089,6 +1094,11 @@ declare namespace LocalJSX {
10891094
* Whether listed resources should be fetched before being displayed
10901095
*/
10911096
"fetch"?: boolean;
1097+
/**
1098+
* URI of a class for which instances will be listed
1099+
*/
1100+
"ifTypeof"?: string;
1101+
"onPod-os:init"?: (event: PosListCustomEvent<any>) => void;
10921102
"onPod-os:resource"?: (event: PosListCustomEvent<any>) => void;
10931103
/**
10941104
* URI of the predicate to follow

0 commit comments

Comments
 (0)