{/* Do not edit this file. It is automatically generated by API Documenter. */}


## FormatOptions

Setting model for conversion format of data field values

**Signature:**

```typescript
export interface FormatOptions
```

## Remarks

When setting it as an option in [Grid](/refs/Class/GridBase), you only need to enter the necessary information.

## Example


```js
grid.setFormatOptions({booleanFormat: 'wrong:correct'});
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [booleanFormat](/refs/Interface/FormatOptions#booleanformat) | string | When the value is of type Boolean, the conversion format |
| [datetimeFormat](/refs/Interface/FormatOptions#datetimeformat) | string | When the value is in date format, convert format |
| [numberFormat](/refs/Interface/FormatOptions#numberformat) | string | When the value is in numeric format, the conversion format |
| [textFormat](/refs/Interface/FormatOptions#textformat) | string | When the value is in text format, Convert Format |

## Properties Desc

### booleanFormat

Conversion format when the value is of type Boolean

`Type` - string

**Remarks:**

Separated with a colon (:) or semicolon (;), the left side is `false`{/* */}, and the right side is `true`{/* */}.

Example) `'Nub: Yub'`

<hr/>

### datetimeFormat

Conversion format when the value is in date format

`Type` - string

**Remarks:**

Example) `'yy-M-dd'`

<hr/>

### numberFormat

Conversion format when the value is of numeric type

`Type` - string

**Remarks:**

Example) `' #,##0.### '`

<hr/>

### textFormat

Conversion format when the value is in text format

`Type` - string

**Remarks:**

Separate with a semicolon (;) and specify the same type as the first parameter of String.prototype.replace on the left and the second parameter on the right. Example) `'([A-Za-z]*); Mr\. \$1'`

<hr/>