add the datalist option

The datalist option works now with the text type. To use it, add the 'list' clause on the setting object.