|
1413 | 1413 | "example": "this.render(); //--> '<p>...</p>'" |
1414 | 1414 | } |
1415 | 1415 | }, |
1416 | | - "InkRegistry": { |
| 1416 | + "ClientRegistry": { |
1417 | 1417 | "elements": { |
1418 | 1418 | "kind": "property", |
1419 | 1419 | "list": false, |
1420 | 1420 | "type": "Map<Element, InkElement>", |
1421 | 1421 | "description": "Returns a map of elements used in the DOM.", |
1422 | | - "example": "InkAPI.InkRegistry.elements.get(component);" |
| 1422 | + "example": "InkAPI.ClientRegistry.elements.get(component);" |
1423 | 1423 | }, |
1424 | 1424 | "createComponent": { |
1425 | 1425 | "kind": "function", |
|
1455 | 1455 | "type": "InkElement" |
1456 | 1456 | }, |
1457 | 1457 | "description": "Creates a InkElement from a web component class.", |
1458 | | - "example": "InkAPI.InkRegistry.createComponent('fancy-button', InkComponent, { title: 'Hello' }, children);" |
| 1458 | + "example": "InkAPI.ClientRegistry.createComponent('fancy-button', InkComponent, { title: 'Hello' }, children);" |
1459 | 1459 | }, |
1460 | 1460 | "createElement": { |
1461 | 1461 | "kind": "function", |
|
1485 | 1485 | "type": "InkElement" |
1486 | 1486 | }, |
1487 | 1487 | "description": "Creates a InkElement from a string tag name.", |
1488 | | - "example": "InkAPI.InkRegistry.createElement('a', { href: '/' }, children);" |
| 1488 | + "example": "InkAPI.ClientRegistry.createElement('a', { href: '/' }, children);" |
1489 | 1489 | }, |
1490 | 1490 | "createText": { |
1491 | 1491 | "kind": "function", |
|
1503 | 1503 | "type": "TextNode" |
1504 | 1504 | }, |
1505 | 1505 | "description": "Creates a TextNode from a raw string.", |
1506 | | - "example": "InkAPI.InkRegistry.createText('foo');" |
| 1506 | + "example": "InkAPI.ClientRegistry.createText('foo');" |
1507 | 1507 | }, |
1508 | 1508 | "get": { |
1509 | 1509 | "kind": "function", |
|
1521 | 1521 | "type": "InkElement" |
1522 | 1522 | }, |
1523 | 1523 | "description": "Returns a InkElement given a DOM element.", |
1524 | | - "example": "InkAPI.InkRegistry.get(element)" |
| 1524 | + "example": "InkAPI.ClientRegistry.get(element)" |
1525 | 1525 | }, |
1526 | 1526 | "has": { |
1527 | 1527 | "kind": "function", |
|
1539 | 1539 | "type": "boolean" |
1540 | 1540 | }, |
1541 | 1541 | "description": "Returns true if the given element exists in the registry", |
1542 | | - "example": "InkAPI.InkRegistry.has(element)" |
| 1542 | + "example": "InkAPI.ClientRegistry.has(element)" |
1543 | 1543 | }, |
1544 | 1544 | "map": { |
1545 | 1545 | "kind": "function", |
|
1557 | 1557 | "type": "T" |
1558 | 1558 | }, |
1559 | 1559 | "description": "Like array map for registry returns an array of whatever the callback returns.", |
1560 | | - "example": "InkAPI.InkRegistry.map((ink, element) => [ink, element]);" |
| 1560 | + "example": "InkAPI.ClientRegistry.map((ink, element) => [ink, element]);" |
1561 | 1561 | }, |
1562 | 1562 | "register": { |
1563 | 1563 | "kind": "function", |
|
1581 | 1581 | "type": "InkElement" |
1582 | 1582 | }, |
1583 | 1583 | "description": "Registers a InkElement to the registry.", |
1584 | | - "example": "InkAPI.InkRegistry.register(element, { foo: 'bar' });" |
| 1584 | + "example": "InkAPI.ClientRegistry.register(element, { foo: 'bar' });" |
1585 | 1585 | } |
1586 | 1586 | }, |
1587 | 1587 | "InkElement": { |
|
1830 | 1830 | "description": "The Ink exception class used to create custom errors.", |
1831 | 1831 | "example": "throw InkAPI.InkException.for('error message');" |
1832 | 1832 | }, |
1833 | | - "InkRegistry": { |
| 1833 | + "ClientRegistry": { |
1834 | 1834 | "kind": "property", |
1835 | 1835 | "list": false, |
1836 | | - "type": "InkRegistry", |
| 1836 | + "type": "ClientRegistry", |
1837 | 1837 | "description": "The Ink registry class used to store custom elements.", |
1838 | | - "example": "new InkAPI.InkRegistry.createElement('a', { href: '/' });" |
| 1838 | + "example": "new InkAPI.ClientRegistry.createElement('a', { href: '/' });" |
1839 | 1839 | }, |
1840 | 1840 | "children": { |
1841 | 1841 | "kind": "function", |
|
0 commit comments