widgets/implementations/three-d-rotation/three-d-rotation-widget-config/three-d-rotation-widget-config.component.ts
OnInit
OnBeforeSave
selector | c8y-three-d-rotation-widget-config |
standalone | true |
imports |
CoreModule
ButtonsModule
|
templateUrl | ./three-d-rotation-widget-config.component.html |
viewProviders |
|
Properties |
Methods |
Inputs |
constructor(formBuilder: FormBuilder, form: NgForm)
|
|||||||||
Parameters :
|
config |
Type : ThreeDRotationWidgetConfig
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
onBeforeSave | ||||||
onBeforeSave(config?: ThreeDRotationWidgetConfig)
|
||||||
Parameters :
Returns :
boolean | Promise | Observable
|
formGroup |
Type : ReturnType<>
|
<form [formGroup]="formGroup">
<c8y-form-group>
<label translate>Select object model for rendering</label>
<div class="c8y-select-wrapper">
<select class="form-control" formControlName="objectModel">
<option value="box.min.json" translate>Box model</option>
<option value="phoneModel.min.json" translate>Phone model</option>
</select>
</div>
</c8y-form-group>
<c8y-form-group>
<label translate>Wireframe</label>
<button type="button" class="btn" formControlName="isWireframe" btnCheckbox translate>
Wireframe
</button>
</c8y-form-group>
<c8y-form-group>
<label translate>Camera type</label>
<div class="c8y-select-wrapper">
<select class="form-control" formControlName="cameraType">
<option value="OC" translate>Orthographic camera</option>
<option value="PC" translate>Perspective camera</option>
</select>
</div>
</c8y-form-group>
</form>