Hi there,
I found out a article and sample for SharePoint Online (https://github.com/pnp/List-Formatting/tree/master/view-samples/document-library). It is a better sample for me.
I went through the article and found out a question:
Site Script
This sample includes a site script (update-documents.json) that creates the required site columns, the Document Library, and a new view named All Documents - customized in the Document Library that contains all the required columns.
I use the following command and cannot find something different:
Add-SPOSiteDesign -Title "Document Library Sample" -WebTemplate "64" -SiteScripts "2756067f-d818-4933-a514-2a2b2c50fb06" -Description "Creates customer list and applies standard theme"
cannot find this: "that creates the required site columns, the Document Library, and a new view named All Documents - customized in the Document Library that contains all the required columns."
Does anyone have any idea on it. ?? thanks