Set accept attribute from types