How to Set maxlevel for QueryWidget

Hi,
Good day,

As like querybuilder , expecting the maxlevel feature in query widget,

Below snippet we have with maxlevel feature in querybuilder,

webix.ui({
container: “rule-builder-control”,
view: “querybuilder”,
id: “querybuilder”,
fields: $scope.fields,
filters: $scope.operators,
maxLevel: $scope.maxlevel,
inputMaxWidth: 350
});

How to achieve in Query widget?,

Hi,
there is no such setting in Query, so you cannot do something like that, but you can achieve this with a small customization and hide Add group action for the last allowed level.
https://snippet.webix.com/0bco9kk5