You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can create your own group type with additional properties. The key is to pass your custom group component to `GroupsList`. Here's a complete example:
183
+
You can create your own group type with additional properties. The key is to pass your custom group component to `BlockGroups`. Here's a complete example:
179
184
180
185
```typescript
181
-
import { Graph, GroupsList, Group } from'@gravity-ui/graph';
186
+
import { Graph, BlockGroups, Group } from'@gravity-ui/graph';
182
187
183
188
// 1. Define extended group type
184
189
interfaceExtendedTGroupextendsTGroup {
@@ -211,7 +216,7 @@ class CustomGroup extends Group<ExtendedTGroup> {
211
216
}
212
217
213
218
// 3. Create groups with extended properties
214
-
const groups =graph.addLayer(GroupsList, {
219
+
const groups =graph.addLayer(BlockGroups, {
215
220
draggable: false,
216
221
groupComponent: CustomGroup, // Use our custom component
0 commit comments