How can I add CommandBar buttons in SharePoint online using JSOM?
-
08-02-2021 - |
Solução
You can insert some code into React script editor web part to append the custom button.
<script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var commandset= $("button[name='Send by email'][role='menuitem']").parent().parent();
commandset.append( "<p>Test</p>" );
});
Outras dicas
You should use a SharePoint Framework Extension to do this.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange