# ValueEditor

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-tools/trait-valueeditor/

**trait** · [`ferroui-designer-tools`](/docs/0.5.0/api/ferroui-designer-tools/) · v0.5.0

```rust
trait ValueEditor
```

Property validation is independent of native editor widgets. A host can register a custom
value editor first and use its ID to choose an associated native control factory.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/properties.rs#L78)

## Members

- [`id`](#function-id)
- [`supports`](#function-supports)
- [`validate`](#function-validate)

<a id="function-id"></a>

### id

```rust
fn id(self: &Self) -> &str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/properties.rs#L79)

<a id="function-supports"></a>

### supports

```rust
fn supports(self: &Self, property: &PropertyDescriptor) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/properties.rs#L80)

<a id="function-validate"></a>

### validate

```rust
fn validate(self: &Self, property: &PropertyDescriptor, value: &str) -> Result<()>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/properties.rs#L81)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
