log2trace-ui - v1.0.0-rc.9
    Preparing search index...

    Function choiceOption

    • The value of an attribute when it is one of choices (checking <trace-view> first, then <trace-visualizer>), else undefined.

      Type Parameters

      • T extends string

      Parameters

      • options: ViewOptions
      • attribute: string
      • choices: readonly T[]
      • viewName: string = attribute

      Returns T | undefined