View Single Post
02/14/21, 06:48 AM   #9
andy.s
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 40
Lua Code:
  1. local function choices()
  2.     return {math.random(100), math.random(100)}
  3. end
  4.  
  5. {
  6.     type = "dropdown",
  7.     -- name, getFunc, etc...
  8.     setFunc = function(value)
  9.         MyAddonDropdown:UpdateChoices(choices(), choices())
  10.     end,
  11.     choices = choices(),
  12.     choicesValues = choices(),
  13.     reference = "MyAddonDropdown",
  14. },

This code randomizes MyAddonDropdown items every time you select something.
  Reply With Quote