-
Notifications
You must be signed in to change notification settings - Fork 1k
SPFx Top Actions Doc Clarification Suggestion #8890
Copy link
Copy link
Closed
Labels
area:docsCategory: SharePoint developer/development documentation relatedCategory: SharePoint developer/development documentation relatedtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active worktype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Metadata
Metadata
Assignees
Labels
area:docsCategory: SharePoint developer/development documentation relatedCategory: SharePoint developer/development documentation relatedtype:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active worktype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
macOS
What browser(s) / client(s) have you tested
Additional environment details
n/a
Describe the bug / error
The internal docs for Top Actions aren't clear which are used to generate the published docs & this make IntelliSense unclear in VSCode.
Specifically...
ITopActions.onExecute()
The descriptions for the two parameters passed into the method could be improved to provide clarity for developers without having to go to the docs.
I suggest:
Why?
actionName===targetPropertyfrom the API... as there's nothing that implies uniqueness on each Top Action controlupdatedValueimplies something changed by clicking the control, which isn't the case... nothing updated... it's eithertrueor is thekeyof the selected dropdown optionITopActionsButtonProps.icon
Furthermore, the
iconproperty for a button is a string but doesn't give any context on where to get the icon from. It's confusing as to why this is different from the icon on a dropdown control which has its own interface ITopActionsDropdownOptionIconProps.I can't suggest anything here because I'm confused...
SharePointLogo...Steps to reproduce
n/a
Expected behavior
n/a