You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terminal.interactiveSelectList() returns the visible title of the selected entry. This is not always convenient. It would be useful to specify a (hidden) value in each entry which is returned instead of the title (a bit like HTML <option value="...">).
This could be added to SelectList.Entry:
data classEntry(
/** The title of the entry. */valtitle:String,
/** An optional description of the entry. */valdescription:Widget? = null,
/** Whether this entry is marked as selected. */valselected:Boolean = false,
/** Return this value instead of title if not null. */valvalue:String? = null,
)
The text was updated successfully, but these errors were encountered:
Terminal.interactiveSelectList()
returns the visible title of the selected entry. This is not always convenient. It would be useful to specify a (hidden) value in each entry which is returned instead of the title (a bit like HTML <option value="...">).This could be added to
SelectList.Entry
:The text was updated successfully, but these errors were encountered: