In spfx listview command set, I want to add a new context menu option to list items. I have this
elements.xml
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Title="ImagePicker"
RegistrationId="100"
RegistrationType="List"
Location="ClientSideExtension.ListViewCommandSet.ContextMenu"
ClientSideComponentId="e15a3da8-5684-44f5-abc8-e9c72f5bb926"
ClientSideComponentProperties="{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}">
</CustomAction>
</Elements>
and clientsideinstance.xml
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ClientSideComponentInstance
Title="ImagePicker"
Location="ClientSideExtension.ListViewCommandSet.ContextMenu"
ListTemplateId="100"
Properties="{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}"
ComponentId="e15a3da8-5684-44f5-abc8-e9c72f5bb926" />
</Elements>
but when I test on gulp serve, it only appears in the top command bar, not on the list item. Anyone know what's wrong?