# PropertyWidgetDecorator based on the type of input

**URL:** https://discourse.paraview.org/t/propertywidgetdecorator-based-on-the-type-of-input/5166
**Category:** Development
**Created:** [August 24, 2020, 7:11am UTC](https://discourse.paraview.org/t/propertywidgetdecorator-based-on-the-type-of-input/5166 "2020-08-24T07:11:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SimonFuet](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/e95f7d/32.png) [@SimonFuet](https://discourse.paraview.org/u/SimonFuet)
#### Post date: [August 24, 2020, 7:11am UTC](https://discourse.paraview.org/t/propertywidgetdecorator-based-on-the-type-of-input/5166/1 "2020-08-24T07:11:37Z")

</div>

Hi all,

Is it possible in a filter XML desciption to add a PropertyWidgetDecorator that depends on the type of input ?  
My filter can be used with any type of data set, but for vtkUnstructuredGrids, I have a few extra parameters. How can I make them visible only when an unstructured grid is selected?

Thank you

Simon

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [August 27, 2020, 8:54am UTC](https://discourse.paraview.org/t/propertywidgetdecorator-based-on-the-type-of-input/5166/2 "2020-08-27T08:54:57Z")

</div>

Yes, using pqInputDataTypeDecorator: [https://kitware.github.io/paraview-docs/latest/cxx/classpqInputDataTypeDecorator.html](https://kitware.github.io/paraview-docs/latest/cxx/classpqInputDataTypeDecorator.html)

```
    <Hints>
      <PropertyWidgetDecorator type="InputDataTypeDecorator" name="vtkPolyData" exclude="1"/>
    </Hints>
```

---

<div class="post-metadata">

### Author: ![SimonFuet](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/e95f7d/32.png) [@SimonFuet](https://discourse.paraview.org/u/SimonFuet)
#### Post date: [October 6, 2020, 8:13am UTC](https://discourse.paraview.org/t/propertywidgetdecorator-based-on-the-type-of-input/5166/3 "2020-10-06T08:13:00Z")

</div>

Thanks a lot! that’s exactly what I was looking for

Simon
