@sankhyalabs/ezui-docs 7.1.0-dev.6 → 7.1.0-dev.7
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/components/ez-tree/readme.md +13 -1
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
| `ezChange` | Emitido quando um item é selecionado na árvore. | `CustomEvent<ITreeItem>` |
|
|
26
26
|
| `ezDbClickItem` | Emitido ao dar clique duplo em um item da árvore. | `CustomEvent<ITreeItem>` |
|
|
27
27
|
| `ezOpenItem` | Emitido quando um item é aberto na árvore. | `CustomEvent<ITreeItem>` |
|
|
28
|
+
| `ezRemoveItem` | Emitido ao remover um item da árvore. | `CustomEvent<string>` |
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
## Methods
|
|
@@ -139,6 +140,17 @@ Type: `Promise<void>`
|
|
|
139
140
|
|
|
140
141
|
---
|
|
141
142
|
|
|
143
|
+
### `removeItem(id?: string) => Promise<void>`
|
|
144
|
+
|
|
145
|
+
Remove um item da árvore pelo seu ID.
|
|
146
|
+
Se o item removido estiver selecionado, a seleção será limpa.
|
|
147
|
+
|
|
148
|
+
#### Returns
|
|
149
|
+
|
|
150
|
+
Type: `Promise<void>`
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
142
154
|
### `selectItem(id: string) => Promise<void>`
|
|
143
155
|
|
|
144
156
|
Efetua a seleção de um item.
|
|
@@ -149,7 +161,7 @@ Type: `Promise<void>`
|
|
|
149
161
|
|
|
150
162
|
---
|
|
151
163
|
|
|
152
|
-
### `updateItem(item: ITreeItem) => Promise<void>`
|
|
164
|
+
### `updateItem(item: ITreeItem | ITreeItem[], config?: Partial<UpdateItemConfig>) => Promise<void>`
|
|
153
165
|
|
|
154
166
|
Atualiza um item
|
|
155
167
|
|