Skip to content

Commit dfd428b

Browse files
docs: Added group example
1 parent 8a3c8ce commit dfd428b

3 files changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<f-flow fDraggable>
2+
<f-canvas>
3+
<f-connection fOutputId="output1" fInputId="input1"></f-connection>
4+
<div fGroup fDragHandle [fGroupPosition]="{x: 10, y: 10}" [fGroupSize]="{ width: 680, height: 580}" fGroupId="group0"></div>
5+
<div fGroup fDragHandle [fGroupPosition]="{x: 20, y: 20}" [fGroupSize]="{ width: 600, height: 460}" fGroupId="group1" fGroupParentId="group0"></div>
6+
<div style="background-color: #3e63dd" fGroup fDragHandle [fGroupPosition]="{x: 40, y: 40}" [fGroupSize]="{ width: 200, height: 200}" fGroupId="group2" fGroupParentId="group1"></div>
7+
<div style="background-color: #3dd68c" fGroup fDragHandle [fGroupPosition]="{x: 280, y: 40}" [fGroupSize]="{ width: 260, height: 260}" fGroupId="group3" fGroupParentId="group1"></div>
8+
9+
10+
<div fNode [fNodePosition]="{ x: 90, y: 120 }" fDragHandle fNodeParentId="group2" fNodeOutput fOutputId="output1" fOutputConnectableSide="right">Node 1</div>
11+
<div fNode [fNodePosition]="{ x: 330, y: 120 }" fDragHandle fNodeParentId="group3" fNodeInput fInputId="input1" fInputConnectableSide="left">Node 2</div>
12+
</f-canvas>
13+
</f-flow>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@use "../../flow-common";
2+
3+
::ng-deep groups-simple-example {
4+
@include flow-common.connection;
5+
}
6+
7+
.f-node {
8+
@include flow-common.node;
9+
cursor: default;
10+
}
11+
12+
.f-group {
13+
background-color: red;
14+
opacity: 0.3;
15+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { ChangeDetectionStrategy, Component } from '@angular/core';
2+
import { FFlowModule } from '@foblex/flow';
3+
4+
@Component({
5+
selector: 'groups-simple-example',
6+
styleUrls: [ './groups-simple-example.component.scss' ],
7+
templateUrl: './groups-simple-example.component.html',
8+
changeDetection: ChangeDetectionStrategy.OnPush,
9+
standalone: true,
10+
imports: [
11+
FFlowModule
12+
]
13+
})
14+
export class GroupsSimpleExampleComponent {
15+
16+
}

0 commit comments

Comments
 (0)