@syncfusion/ej2-schedule
Version:
Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.
42 lines (36 loc) • 1.1 kB
text/typescript
/* eslint-disable @typescript-eslint/no-explicit-any */
import { Property, ChildProperty } from '@syncfusion/ej2-base';
/**
* Configuration that applies on each appointment field options of scheduler.
*/
export class FieldOptions extends ChildProperty<FieldOptions> {
/**
* Denotes the field name to be mapped from the dataSource for every event fields.
*
* @default null
*/
@Property()
public name: string;
/**
* Assigns the specific default value to the fields, when no values are provided to those fields from dataSource.
*
* @default null
*/
@Property()
public default: string;
/**
* Assigns the label values to be displayed for the event editor fields.
*
* @default null
*/
@Property()
public title: string;
/**
* Defines the validation rules to be applied on the event fields within the event editor.
* {% codeBlock src="schedule/validation-api/index.ts" %}{% endcodeBlock %}
*
* @default {}
*/
@Property({})
public validation: Record<string, any>;
}