@@ -62,26 +62,28 @@ import './vaadin-crud-form.js';
6262 * `toolbar` | To replace the toolbar content. Add an element with the attribute `new-button` for the new item action.
6363 *
6464 * #### Example:
65+ *
6566 * ```html
6667 * <vaadin-crud
6768 * id="crud"
6869 * items='[{"name": "John", "surname": "Lennon", "role": "singer"},
6970 * {"name": "Ringo", "surname": "Starr", "role": "drums"}]'
7071 * >
71- * <vaadin-grid slot="grid">
72- * <vaadin-crud-edit-column></vaadin-crud-edit-column>
73- * <vaadin-grid-column id="column1"></vaadin-grid-column>
74- * <vaadin-grid-column id="column2"></vaadin-grid-column>
75- * </vaadin-grid>
76- *
77- * <vaadin-form-layout slot="form">
78- * <vaadin-text-field label="First" path="name"></vaadin-text-field>
79- * <vaadin-text-field label="Surname" path="surname"></vaadin-text-field>
80- * </vaadin-form-layout>
72+ * <vaadin-grid slot="grid">
73+ * <vaadin-crud-edit-column></vaadin-crud-edit-column>
74+ * <vaadin-grid-column id="column1"></vaadin-grid-column>
75+ * <vaadin-grid-column id="column2"></vaadin-grid-column>
76+ * </vaadin-grid>
8177 *
82- * <div slot="footer">Total singers: [[size]]</div>
78+ * <vaadin-form-layout slot="form">
79+ * <vaadin-text-field label="First" path="name"></vaadin-text-field>
80+ * <vaadin-text-field label="Surname" path="surname"></vaadin-text-field>
81+ * </vaadin-form-layout>
8382 *
84- * <button slot="new">New singer</button>
83+ * <div slot="toolbar">
84+ * Total singers: [[size]]
85+ * <button new-button>New singer</button>
86+ * </div>
8587 * </vaadin-crud>
8688 * ```
8789 * ```js
@@ -102,6 +104,7 @@ import './vaadin-crud-form.js';
102104 * column2.renderer = (root, column, model) => {
103105 * root.textContent = model.item.surname;
104106 * };
107+ * ```
105108 *
106109 * ### Helpers
107110 *
0 commit comments