# options (property)

Use options property to configure the datagrid and/or add extra functionality (plugins).

import { intl, format, column, type } from "@activewidgets/options";


const options = [

    // enable intl. number/date formats
    intl('en-US'),

    // define named formats
    format('money', {style: 'decimal', minimumFractionDigits: 2, maximumFractionDigits: 2}),
    format('date', {year: 'numeric', month: 'short', day: 'numeric'}),

    // set column defaults
    column({width: 200}),

    // define reusable column types
    type('country flag', {template: 'country', width: 170}),
    type('phone & fax', {template: 'phone', width: 150}),
    type('money', {format: 'money', width: 100, align: 'right'}),
    type('date', {format: 'date', width: 150, align: 'right'})
];