Calendar View
id
Get the view id
tableId
Get the id of current view belongs to
getType
Get the type of the view. Returns ViewType.Calendar
for table view.
getType(): Promise<ViewType.Calendar>;
getType(): Promise<ViewType.Calendar>;
getMeta
getMeta(): Promise<ICalendarViewMeta>;
getMeta(): Promise<ICalendarViewMeta>;
Get CalendarView meta information, where the ICalendarViewMeta
type is defined as:
interface ICalendarViewMeta {
id: string;
name: string;
type: ViewType.Calendar;
property: {
filterInfo: IFilterInfo | null;
}
}
interface ICalendarViewMeta {
id: string;
name: string;
type: ViewType.Calendar;
property: {
filterInfo: IFilterInfo | null;
}
}
getFieldMetaList
getFieldMetaList(): Promise<IFieldMeta[]>;
getFieldMetaList(): Promise<IFieldMeta[]>;
Get the list of field metadata. The field metadata is ordered as it appears in the UI.
getVisibleRecordIdList
getVisibleRecordIdList(filterInfo?: IFilterInfo, sortInfo?: ISortInfo[]): Promise<(string | undefined)[]>;
getVisibleRecordIdList(filterInfo?: IFilterInfo, sortInfo?: ISortInfo[]): Promise<(string | undefined)[]>;
Get the list of visible record IDs based on the filter and sort criteria. You can pass filter and sort information to get the filtered and sorted record IDs. (IFilterInfo definition and ISortInfo definition)
getVisibleFieldIdList
getVisibleFieldIdList(): Promise<string[]>;
getVisibleFieldIdList(): Promise<string[]>;
Get the list of visible field IDs.
getChildRecordIdList
getChildRecordIdList(parentRecordId: string): Promise<RecordId[] | undefined>;
getChildRecordIdList(parentRecordId: string): Promise<RecordId[] | undefined>;
Get the list of child record IDs for a given parent record ID. Returns undefined if the record has no child records.
getFilterInfo
getFilterInfo(): Promise<IFilterInfo | null>;
getFilterInfo(): Promise<IFilterInfo | null>;
Get the current filter information. (IFilterInfo definition)
showField
showField: (fieldId: string | string[]) => Promise<boolean>;
showField: (fieldId: string | string[]) => Promise<boolean>;
Show field
hideField
hideField: (fieldId: string | string[]) => Promise<boolean>;
hideField: (fieldId: string | string[]) => Promise<boolean>;
Hide field
addFilterCondition
addFilterCondition: (param: IAddFilterConditionParams) => Promise<boolean>;
addFilterCondition: (param: IAddFilterConditionParams) => Promise<boolean>;
Add a filter condition. Returns false if the addition fails. (Calling this API does not save the modified settings. To save the modifications, you need to call view.applySetting()
separately.)
deleteFilterCondition
deleteFilterCondition: (conditionId: string) => Promise<boolean>;
deleteFilterCondition: (conditionId: string) => Promise<boolean>;
Delete a filter condition. Returns false if the deletion fails. (Calling this API does not save the modified settings. To save the modifications, you need to call view.applySetting()
separately.)
updateFilterCondition
updateFilterCondition: (param: IUpdateFilterConditionParams) => Promise<boolean>;
updateFilterCondition: (param: IUpdateFilterConditionParams) => Promise<boolean>;
Update a filter condition. Returns false if the update fails. (Calling this API does not save the modified settings. To save the modifications, you need to call view.applySetting()
separately.)
setFilterConjunction
setFilterConjunction: (conjunction: FilterConjunction) => Promise<boolean>;
setFilterConjunction: (conjunction: FilterConjunction) => Promise<boolean>;
Set the conjunction between filter conditions. The FilterConjunction type is defined as:
enum FilterConjunction {
And = "and",
Or = "or"
}
enum FilterConjunction {
And = "and",
Or = "or"
}
You can choose to satisfy all filter conditions or any of the conditions. (Calling this API does not save the modified settings. To save the modifications, you need to call view.applySetting()
separately.)
applySetting
applySetting(): Promise<void>;
applySetting(): Promise<void>;
Submit the set grouping/filtering/sorting and synchronize with other users