Add getText function on config

Gives user more flexibility in rendering the options in the dropdown
list