Skip to content

API reference / @docmentis/udoc-node / PresentationBindingEntry

Type Alias: PresentationBindingEntry ​

ts
type PresentationBindingEntry = 
  | {
  place: {
     bindingPlace: PresentationBindingPlaceRef;
     slide: number;
     text: string;
     binding: Binding;
     path?: string;
     error?: BindingError;
     options?: PresentationBindingOption[];
     otherwise?: PresentationBindingOtherwiseRef;
  };
}
  | {
  tag: {
     slide: number;
     location: SearchMatchLocation;
     text: string;
     binding?: Binding;
     path?: string;
     error?: BindingError;
  };
};

One entry of a deck's [BindingReport]: a binding place, or a tag in a plain deck's text — each with the slide it is on, the binding as written, braces and all, its path, and what is wrong with it.

path is the binding's path, resolved in the scope of the repeats around it, from the data's root: its names joined by ., an array's item [] after the array — funds[].name for {{fund.name}} inside {{#fund in funds}}. None for an option's tag, which binds no path of its own, and for a tag that doesn't read.