Skip to content

API reference / Common / Engine types / TextBindingChoiceSpan

Interface: TextBindingChoiceSpan ​

A choice within a paragraph: its options and its otherwise, and nothing else. The block level is TextBindingChoiceBlock.

A template's choice holds every option and its otherwise where it has one; an instance's holds only what its value picked — the option kept for it, or else its otherwise, an empty one where the template has none — and keeps the template's whole in its kept. A TextMarkup container: it contributes no characters, so the CRDT carries it as a mark over the characters its spans realize, and its range lies inside one paragraph. See the Automation Binding and Text Model design docs.

Properties ​

PropertyDescription
binding
TextBindingChoice
Which choice it is, and what it binds.
options?
TextBindingOptionSpan[]
Its options, in order.
otherwise?
TextBindingOtherwiseSpan
Its otherwise, after its options, where it has one. Never empty together with options: a choice holds an option or its otherwise.