inspector/groups#

Interfaces#

MembershipRow#

Defined in: editor/src/inspector/groups.ts:42

One checkbox of a membership fieldset.

Properties#

checked#

readonly checked: boolean

Defined in: editor/src/inspector/groups.ts:49

command#

readonly command: SetCommand

Defined in: editor/src/inspector/groups.ts:53

The command a click dispatches.

depth#

readonly depth: number

Defined in: editor/src/inspector/groups.ts:48

How deep a timeline lies below its root, 0 for a root; 0 for a group.

id#

readonly id: string

Defined in: editor/src/inspector/groups.ts:44

The group’s ID (groupsOf) or the timeline’s (membersOf).

label#

readonly label: string

Defined in: editor/src/inspector/groups.ts:46

Its name, else its ID.

mixed#

readonly mixed: boolean

Defined in: editor/src/inspector/groups.ts:51

Some of the selected timelines are members and some are not: the checkbox is indeterminate.

refusal#

readonly refusal: string | null

Defined in: editor/src/inspector/groups.ts:55

Why core refuses the command; the checkbox is then disabled.


Memberships#

Defined in: editor/src/inspector/groups.ts:59

A membership fieldset: its legend and its rows.

Properties#

legend#

readonly legend: "Groups" | "Members"

Defined in: editor/src/inspector/groups.ts:60

rows#

readonly rows: readonly MembershipRow[]

Defined in: editor/src/inspector/groups.ts:61


NewGroup#

Defined in: editor/src/inspector/groups.ts:65

The New group button: the add it dispatches and why core refuses it, if it does.

Properties#

command#

readonly command: AddCommand

Defined in: editor/src/inspector/groups.ts:66

refusal#

readonly refusal: string | null

Defined in: editor/src/inspector/groups.ts:67

Functions#

groupsOf()#

groupsOf(view, subjects, editing, minter?): Memberships | null

Defined in: editor/src/inspector/groups.ts:191

The Groups fieldset of selected timelines (a timeline, its card or a part of either, all in one block): one row per group of the manifest, in its order, checked when every selected timeline is a member, indeterminate when some are. A click on a checked row takes every selected timeline out of the group; on another row it puts every one that is no member in. null for a manifest without groups, for any other selection, and in a group or timeline editor.

Parameters#

view#

View

subjects#

readonly Subject[]

editing#

Editing | null

minter?#

IdMinter = ...

Returns#

Memberships | null


membersOf()#

membersOf(view, subjects, editing, minter?): Memberships | null

Defined in: editor/src/inspector/groups.ts:234

The Members fieldset of one selected group (its frame or its title): one row per timeline of the manifest, roots and children at any depth in the manifest’s order, each checked when it is a member; a click puts it into the group or takes it out. A timeline that cannot join, because it holds or lies inside a member, is disabled with core’s reason. null for any other selection, and in a group or timeline editor.

Parameters#

view#

View

subjects#

readonly Subject[]

editing#

Editing | null

minter?#

IdMinter = ...

Returns#

Memberships | null


newGroupOf()#

newGroupOf(view, subjects, editing, minter?): NewGroup | null

Defined in: editor/src/inspector/groups.ts:273

The New group button: for selected timelines in one block, an add of a group of them, members in selection order; for the selected block alone, an add of a group without members. The group carries no ID: the store gives it one when it dispatches the command. null for any other selection, and in a group or timeline editor.

Parameters#

view#

View

subjects#

readonly Subject[]

editing#

Editing | null

minter?#

IdMinter = ...

Returns#

NewGroup | null