# 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: Function): void;
render(): void;
setIsErrored(value: boolean): void;
setValue(value: any): void;
}

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

##### Index

### Methods

getValue
onChange
render
setIsErrored
setValue

## Methods

### getValue

- getValue(): any

  #### Returns any

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

### onChange

- onChange(callback: Function): void

  #### Parameters

  - callback: Function

  #### Returns void

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

### render

- render(): void

  #### Returns void

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

### setIsErrored

- setIsErrored(value: boolean): void

  #### Parameters

  - value: boolean

  #### Returns void

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

### setValue

- setValue(value: any): void

  #### Parameters

  - value: any

  #### Returns void

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