Allow a function as the toolbar option