Skip to content

Commit 883eed8

Browse files
committed
API doc
1 parent bfd2707 commit 883eed8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

chartlets.js/src/lib/component/Registry.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,16 @@ export class RegistryImpl implements Registry {
5353
}
5454
}
5555

56+
/**
57+
* The Chartly component registry.
58+
*
59+
* Use `registry.register(C)` to register your own component `C`.
60+
*
61+
* `C` must be a functional React component with at least the following
62+
* two properties:
63+
*
64+
* - `type: string`: your component's type name.
65+
* - `onChange: ComponentChangeHandler`: an event handler
66+
* that your component may call to signal change events.
67+
*/
5668
export const registry = new RegistryImpl();

0 commit comments

Comments
 (0)