Style doesn't show Up When Using custom templates with select
ABDERRAHMANE-OUALI opened this issue Β· comments
ABDERRAHMANE OUALI commented
HI I'm using templates with select mode in promptUI this is the following templates
templates := &promptui.SelectTemplates{
Active: `{{'π' .Title | cyan | bold }}`,
Inactive: ` {{ .Title | cyan }}`,
Selected: `{{ "β" | green | bold }} {{ "Recipe" | bold }}: {{ .Title | cyan }}`,
}
and then add it to propmptUI
prompt := promptui.Select{
Label: "Select A Project setup",
Items: []string{"React-Typescript", "ReactNative-Expo-Typescript"},
Templates: templates,
}
_, result, err := prompt.Run()
dosen't even show the cursor to select the options