Added support for tagName and encodeLabel parameters in ButtonDropdown