• 0

    posted a message on Grid
    I apologize if this is the incorrect thread to post in. Working on a custom Layout that mimics PerfectRaid, and I have it mostly working, except that I want the entries sorted by class then alphabetically.

    I scanned this thread (especially pg 43), where it talks about new options in 2.0.3. Since we're currently running 2.0.8, I hoped that most of them would be in by now.

    Here is my layout code for your perusal:

    GridLayout:AddLayout(L["Zeza Style"], {
    		defaults = {
    			-- nameList = "",
    			-- groupFilter = "",
    			-- wsortMethod = "NAME", -- or "NAME"
    			--sortDir = "ASC", -- or "DESC"
    			--groupBy = "CLASS", 
    			-- strictFiltering = false,
    			groupBy = "CLASS", 
    			groupingOrder = "WARRIOR,ROGUE,DRUID,PRIEST,PALADIN,SHAMAN,WARLOCK,MAGE,HUNTER,",
    		},
    		[1] = {
    			groupFilter = "1,2,3,4,5,6,7,8,",
    		},
    	})



    Edit: When groupBy = "CLASS", is used, I get the following error:

    Interface\FrameXML\SecureTemplates.lua:897:

    bad argument #2 to 'strsplit' (string expected, got nil)

    Thanks for the help!
    Posted in: Grid & Grid2
  • To post a comment, please or register a new account.