Skip to main content

Function: MnOnPopulateQuery

MnOnPopulateQuery(name): (target: any, key: any, descriptor: PropertyDescriptor) => void

Decorator that marks a method as an event handler for populate query event.

This event is fired when a command bar menu need to be populated with its commands.

Remarks

Available on pages: Record and List.

Registration: Manual registration only. You can use Ribbon Workbench to register this event or the Command Bar Editor of Power Apps.

Parameters

NameTypeDescription
nameValueOrConfigPropertyMapper<string>Name of the command bar menu or callback function that returns the name of the command bar menu from the component configuration.

Returns

fn

▸ (target, key, descriptor): void

Parameters
NameType
targetany
keyany
descriptorPropertyDescriptor
Returns

void

Defined in

packages/core/src/core/metadata/events.ts:477