Skip to content

QueryDefinition

Defines a query that a plugin can handle. Other plugins or the grid can send this query type to retrieve data.

// In manifest
queries: [
{
type: 'canMoveColumn',
description: 'Check if a column can be moved/reordered',
},
]
// In plugin class
handleQuery(query: PluginQuery): unknown {
if (query.type === 'canMoveColumn') {
return this.canMoveColumn(query.context);
}
}
PropertyTypeDescription
typestringThe query type identifier (e.g., ‘canMoveColumn’, ‘getContextMenuItems’). Should be unique across all plugins.
description?stringHuman-readable description of what the query does.
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt