returns the reactive state object of Query
object | state object |
// returns the current state of Query
const state = $$("query").getState();
The returned state object contains the following properties and methods:
{
value: {
glue: "or",
rules: [{ /*contains fields and values*/ },...]
}
}
For example, you can listen to the value changes as:
$$("query").getState().$observe("value", v => {
$$("log").setValue(JSON.stringify(v, "", "\t"));
});