Javascript to format multiple page text into a tab section in SharePoint online modern page

Asuri Spandana 25 Reputation points
2023-12-04T14:39:06.8366667+00:00

Hello Team, Can you please help me with a sample javascript code which can be placed in custom content editor webpart which will link to multiple page text to convert the individual page text to tab section UI i.e easy tabs format in SharePoint online page

Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2023-12-05T02:37:10.93+00:00

    Hi @Asuri Spandana,

    As far as I know, SharePoint online modern page will not support content editor webpart. As a workaround, I would recommend you to use spfx to custom web part. You could refer to the following steps to create the solution

    https://learn.microsoft.com/en-us/sharepoint/dev/spfx/viva/get-started/build-first-sharepoint-adaptive-card-extension

    Here is the sample for more function

    https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-adaptivecards


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.