跳到主要内容

TFrameFilter

Filter and pagination parameters for the file list in SDKMode.Manager mode. Passed via TFrameConfig.filter and accepted by SDKInstance.getRooms.

type TFrameFilter = object;

Examples​

sdk.init({
mode: "manager",
filter: { count: "50", sortBy: "AZ", sortOrder: "ascending" },
...
});

Only the rooms of one room group, e.g. the rooms attached to a CRM deal.

sdk.initManager({
frameId: "ds-frame",
src: "https://portal.example.com",
rootPath: "/rooms/shared/",
filter: { groupId: "42" },
});

Properties​

PropertyTypeDescription
countstringItems per page. Default: "100".
folderstringTarget folder ID. Set automatically when TFrameConfig.id is provided in manager mode.
groupIdstringRoom group ID (GET /api/2.0/files/group). On the rooms list of SDKMode.Manager (rootPath /rooms/shared/) only the rooms of that group are shown, and the group is pinned: search and filters inside the frame stay within it and the group chips are hidden. Also narrows SDKInstance.getRooms. Requires ONLYOFFICE Apps 4.0. Unset by default.
pagestringPage number (1-based). Default: "1".
sortByTFilterSortBySort criterion. See FilterSortBy. Default: FilterSortBy.ModifiedDate.
sortOrderTFilterSortOrderSort direction. See FilterSortOrder. Default: FilterSortOrder.Descending.
withSubfoldersbooleanInclude sub-folder contents in search results. Default: false.