new Date Picker (vanilla-calendar)
Information
Demo
Editor Options
import { type VanillaCalendarOption } from '@slickgrid-universal/common';
const Example: React.FC = () => {
const [dataset, setDataset] = useState<any[]>([]);
const [columns, setColumns] = useState<Column[]>([]);
const [options, setOptions] = useState<GridOption | undefined>(undefined);
useEffect(() => defineGrid(), []);
function defineGrid() {
const columnDefinitions = [
{
id: 'title', name: 'Title', field: 'title',
type: 'dateIso', // if your type has hours/minutes, then the date picker will include date+time
editor: {
model: Editors.date,
// previously known as `editorOptions` for < 9.0
// also vanilla-calendar was previously v2
// see their migration: https://github.com/uvarov-frontend/vanilla-calendar-pro/wiki/%5BMigration-from-v2.*.*%5D-New-API-for-all-options-and-actions-in-v3.0.0)
options: {
displayDateMin: 'today',
disableDates: ['2022-08-15', '2022-08-20'],
} as VanillaCalendarOption,
},
},
];
}
}Custom Validator
Date Format
Last updated