Enode — API Reference
    Preparing search index...

    Function WorkoutCard

    • Parameters

      • __namedParameters: {
            highlighted?: boolean;
            onClick?: () => void;
            provenance?: WorkoutCardProvenance;
            selected?: boolean;
            showParticipants?: boolean;
            showTags?: boolean;
            status?: WorkoutCardStatus;
            trailingAction?: { label: string; onClick: () => void };
            workout: WorkoutReturnDtoV2;
        }
        • Optionalhighlighted?: boolean
        • OptionalonClick?: () => void
        • Optionalprovenance?: WorkoutCardProvenance
        • Optionalselected?: boolean
        • OptionalshowParticipants?: boolean
        • OptionalshowTags?: boolean

          Shows what the workout tags once it is trained: its own tags ("Tags every session from this workout") and each exercise's ("Tags Back squat's sessions"), the same wording as the workout drawer. On in the tracking app's Today list and template library; off elsewhere.

        • Optionalstatus?: WorkoutCardStatus
        • OptionaltrailingAction?: { label: string; onClick: () => void }

          A second target in the title row, for surfaces where the card body already does something else — the planner picker, where the body selects and this opens the preview.

          Its own button, so tapping it never reaches the card's handler, and it carries a full sentence as label because a bare chevron beside a title is not a name for anything.

        • workout: WorkoutReturnDtoV2

      Returns Element