cedar-embeddable-editor 1.2.1 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -2
- package/cedar-embeddable-editor.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -232,6 +232,18 @@ document.addEventListener('WebComponentsReady', function () {
|
|
|
232
232
|
|
|
233
233
|
To reiterate, the metadata being injected **MUST** match the template currently being edited and open in your browser window.
|
|
234
234
|
|
|
235
|
+
### Injecting Template And Metadata Together
|
|
236
|
+
|
|
237
|
+
You can inject your template and metadata together into CEE:
|
|
238
|
+
|
|
239
|
+
```javascript
|
|
240
|
+
const templateAndInstance = {templateObject: object, instanceObject: object};
|
|
241
|
+
cee.templateAndInstanceObject = templateAndInstance;
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
Injecting template and metadata together brings performance benefits as well as allows configuring hiding empty fields.
|
|
245
|
+
Object being injected must strictly have two objects one named 'templateObject' and the other 'instanceObject'.
|
|
246
|
+
|
|
235
247
|
### Data Quality Report
|
|
236
248
|
|
|
237
249
|
The dataQualityReport summarizes basic metrics on the instance data.
|
|
@@ -304,8 +316,8 @@ An example in Angular is:
|
|
|
304
316
|
- `component.ts`:
|
|
305
317
|
```typescript
|
|
306
318
|
logChange(event) {
|
|
307
|
-
|
|
308
|
-
|
|
319
|
+
console.log('CHANGE', event);
|
|
320
|
+
}
|
|
309
321
|
```
|
|
310
322
|
|
|
311
323
|
### Viewer Mode
|