@pretty-chitty/core
    Preparing search index...

    Function Selectable

    • Decorator that marks a property as selectable with a user-friendly label and a list of choices.

      Parameters

      • config: SelectableConfig

        Configuration object containing the label and choices for this property

      Returns (cls: any, key: string) => void

      class MyChit extends Chit {
      @Selectable({
      label: "Difficulty Level",
      choices: [
      { id: "easy", label: "Easy Mode" },
      { id: "medium", label: "Medium Mode" },
      { id: "hard", label: "Hard Mode" }
      ]
      })
      public difficulty: string = "medium";
      }