Standardize how the associate method is used. #4568
Labels
Area: add-in UI
Feedback on UI-related content (e.g., Fabric, dialogs, add-in commands, etc.)
Needs: attention 👋
Waiting on Microsoft to provide feedback
Type: doc request
Request for new documentation or updates/enhancements to existing documentation
This section of the keyboard shortcuts article, Create a mapping of actions to their functions, tells users to pass an anonymous function as the 2nd parameter to the
associate()
method. This is a workable, but differs from other places in the platform docs where we useassociate()
. We should change these examples so that they create a named function and pass the name as the 2nd parameter. This is the way we do it for function commands as shown in: Create the code for the function command.This will also have the advantage making it simpler to show how a function command can be linked to a keyboard shortcut and a ribbon button.
The text was updated successfully, but these errors were encountered: