Skip to content

Instantly share code, notes, and snippets.

@kemayo
Created October 31, 2020 18:05
Show Gist options
  • Save kemayo/1821a9d608ea0954b7edfaf7a63a9886 to your computer and use it in GitHub Desktop.
Save kemayo/1821a9d608ea0954b7edfaf7a63a9886 to your computer and use it in GitHub Desktop.
local options = {
type = "group",
name = "Testing of toggle",
get = function(info) return true end,
set = function(info, value) end,
args = {},
}
for i=1,1000 do
options.args["toggle" .. i] = {
type = "toggle",
name = "Toggle #" .. i,
width = "full",
}
end
LibStub("AceConfigRegistry-3.0"):RegisterOptionsTable("ToggleTest", options)
LibStub("AceConfigDialog-3.0"):AddToBlizOptions("ToggleTest", "ToggleTest")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment