I still prefer the vanilla combobox template, as it doesn't come with an extra label that you may not want:
lua Code:
local dropdown = WINDOW_MANAGER:CreateControlFromVirtual(parent:GetName() .. "DropdownFilter", parent, "ZO_ComboBox")
parent.dropdown = dropdown
dropdown:SetHidden(true)
dropdown:SetAnchor(LEFT, self.control, LEFT, 10)
dropdown:SetHeight(24)
if(dropdownWidth) then
dropdown:SetWidth(dropdownWidth)
end
local comboBox = dropdown.m_comboBox
comboBox:SetSortsItems(false)
for _,v in ipairs(callbackTable) do
comboBox:AddItem(ZO_ComboBox:CreateItemEntry(tooltipSet[v.name], function()
OnDropdownSelect(v)
end))
end
A snippit from my Advanced Filters add-on.