import Button from "@ui5/webcomponents/dist/Button.js"; import type Timeline from "./Timeline.js"; import BusyIndicator from "@ui5/webcomponents/dist/BusyIndicator.js"; type TimelineListRole = "list" | "tree"; export default function TimelineTemplate(this: Timeline) { const listRole: `${TimelineListRole}` = this.hasGroupItems ? "tree" : "list"; return (
{this.items.map(item =>
)} { this.growsWithButton && moreRow.call(this) } { this.growsOnScroll && endRow.call(this) }
); } function moreRow(this: Timeline) { return (
  • {this.loading && }
  • ); } function endRow(this: Timeline) { return ( ); }