# Interface DiscreteField

#### Description

Interface for individual field instances, such as BirthdateField

#### Example

    new sheerid.BirthdateField().setValue('2000-01-01');

interface DiscreteField {
getValue(): any;
onChange(callback): void;
render(): void;
setIsErrored(value): void;
setValue(value): void;
}

- Defined in jslib/src/lib/types/types.ts:344

#####
Index

### Methods

getValue
onChange
render
setIsErrored
setValue

## Methods

### getValue

- getValue(): any

- #### Returns any

  - Defined in jslib/src/lib/types/types.ts:345

### onChange

- onChange(callback): void

- #### Parameters

  - callback: Function

  #### Returns void

  - Defined in jslib/src/lib/types/types.ts:347

### render

- render(): void

- #### Returns void

  - Defined in jslib/src/lib/types/types.ts:349

### setIsErrored

- setIsErrored(value): void

- #### Parameters

  - value: boolean

  #### Returns void

  - Defined in jslib/src/lib/types/types.ts:348

### setValue

- setValue(value): void

- #### Parameters

  - value: any

  #### Returns void

  - Defined in jslib/src/lib/types/types.ts:346