File

widgets/implementations/three-d-rotation/three-d-rotation-widget-config/three-d-rotation-widget-config.component.ts

Implements

OnInit OnBeforeSave

Metadata

Index

Properties
Methods
Inputs

Constructor

constructor(formBuilder: FormBuilder, form: NgForm)
Parameters :
Name Type Optional
formBuilder FormBuilder No
form NgForm No

Inputs

config
Type : ThreeDRotationWidgetConfig

Methods

ngOnInit
ngOnInit()
Returns : void
onBeforeSave
onBeforeSave(config?: ThreeDRotationWidgetConfig)
Parameters :
Name Type Optional
config ThreeDRotationWidgetConfig Yes
Returns : boolean | Promise | Observable

Properties

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>

results matching ""

    No results matching ""