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.
};