Page MenuHomeFeedback Tracker

Add support for filter condition to class ItemsConfig
Closed, ResolvedPublic

Description

It would be great if you could add support for a filter condition to the class ItemsConfig

This would make combo box controls even more versatile without the need of creating a complete custom one.

How it could look:

class ItemsConfig
{

		path[] = {"CfgNotifications"}; // Path to config container
		localConfig = 1; // 1 to search local Description.ext as well
		// Name of the property which will be used for item text
		propertyText = "title";
		// Name of the property which will be used for item right text
		propertyTextRight = "description";
		// Name of the property which will be used for item picture
		propertyPicture = "iconPicture";
		// Name of the property which will be used for item text color
		propertyColor = "color"; 
                // Decide whether the list should be sorted or not (1 = sorted/ 0 = unsorted)
                sort = 1; 
                //filter condition
                filter = "(getNumber (_x >> 'type') == 2) && (getNumber (_x >> 'scope') == 2)";

};

Obviously, the onLoad config entry would need to be adapted.
};

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Eden Editor
Additional Information

Event Timeline

R3vo created this task.May 26 2016, 9:23 PM
LouMontana closed this task as Resolved.Nov 6 2020, 12:14 PM