ListPropertyTypesByType('Dashlet'); $this->Add('class', ChoiceFormBlock::class, [ 'label' => 'Class', 'choices' => array_combine($aPropertyTypes, $aPropertyTypes), ]); // column $this->Add('position_x', IntegerFormBlock::class, [ 'label' => 'Position X', ]); // row $this->Add('position_y', IntegerFormBlock::class, [ 'label' => 'Position Y', ]); // column $this->Add('height', IntegerFormBlock::class, [ 'label' => 'Height', ]); // row $this->Add('width', IntegerFormBlock::class, [ 'label' => 'Width', ]); // dashlet $this->Add('dashlet', DashletPropertiesFormBlock::class, [ 'label' => 'Dashlet', ]) ->InputDependsOn(DashletPropertiesFormBlock::INPUT_DASHLET_TYPE, 'class', ChoiceFormBlock::OUTPUT_VALUE); } }