ACD: In-line Tabs, or Panels Group #486


  • Enhancment
Open
  • StormFX created this issue Mar 15, 2019

    When you have nested options groups (Eg, a primary panel, with sub-panels nested as sub-groups), they default to the "tree" style. This is fine, but it makes it impossible to have tabs on the panels, due to all groups inheriting the "tree" style. Setting childGroups to "tab" makes the sub-panels also appear as tabs, which isn't the desired effect. Would it be possible for there to be a sort of in-line group whose child groups are displayed as tabs so that tabs and sub-panels can be nested in the same parent panel/group?

     

    Ex:

    local Options = {
    	type = "group",
    	name = "Main",
    	args = {
    		Opt1 = {
    			type = "description",
    			name = "This is the primary panel.",
    			order = 1,
    		},
    		Tabs = {
    			type = "group",
    			name = "Tabs",
    			order = 2,
    			inlineTabs = true,
    			args = {
    				Tab1 = {
    					type = "group",
    					name = "Tab1",
    					order = 1,
    					args = {
    						Opt1 = {
    							type = "description",
    							name = "This is tab 1.",
    							order = 1,
    						},
    					},
    				},
    				Tab2 = {
    					type = "group",
    					name = "Tab2",
    					order = 2,
    					args = {
    						Opt1 = {
    							type = "description",
    							name = "This is tab 2.",
    							order = 1,
    						},
    					},
    				},
    			},
    		},
    		SubPanel = {
    			type = "group",
    			name = "SubPanel",
    			order = 3,
    			args = {
    				Opt1 = {
    					type = "description",
    					name = "This is a sub-panel.",
    					order = 1,
    				},
    			},
    		},
    	},
    }

    Another option would be to implement a 'panels' field for options groups that display any nested groups exclusively as tree-style panels. This would allow groups that are to be displayed explicitly as panels to be separated from other groups and then the childGroups field could be used specifically to control those other groups (ie, childGroups wouldn't affect the groups in the 'panels' sub-group).

  • StormFX added a tag Enhancment Mar 15, 2019
  • StormFX edited title and description Mar 15, 2019
  • StormFX edited title and description Mar 30, 2019

To post a comment, please login or register a new account.