Possibility to add an anonymous function to the disabled option.