You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/apis/communication-site-creation-rest.md
-3Lines changed: 0 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,6 @@
2
2
3
3
Learn how to create and get the status of a new modern SharePoint Communication site with the REST interface.
4
4
5
-
> [!NOTE]
6
-
> There is a known bug with this API which is blocking completely this behavior. Fix will be rolling gradually to SharePoint Online by end of October 2017.
7
-
8
5
## Prerequisites
9
6
10
7
This topic assumes that you are already familiar with the topics Get to know the SharePoint REST service and Complete basic operations using SharePoint REST endpoints. It does not provide code snippets.
Copy file name to clipboardExpand all lines: docs/declarative-customization/column-formatting.md
+27-27Lines changed: 27 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@
3
3
> [!IMPORTANT]
4
4
> Column formatting is not yet in production. This documentation is in preview and is subject to change.
5
5
6
-
You can use column formatting to customize how fields in SharePoint lists and libraries are displayed. To do this, you construct a JSON object that describes the elements that are displayed when a field is included in a list view, and the styles to be applied to those elements. The column formatting does not change the data in the list item or file; it only changes how it’s displayed to users who browse the list. Anyone who can create and manage views in a list can use column formatting to configure how view fields are displayed.
6
+
You can use column formatting to customize how fields in SharePoint lists and libraries are displayed. To do this, you construct a JSON object that describes the elements that are displayed when a field is included in a list view, and the styles to be applied to those elements. The column formatting does not change the data in the list item or file; it only changes how it’s displayed to users who browse the list. Anyone who can create and manage views in a list can use column formatting to configure how view fields are displayed.
7
7
8
-
For example, a list with the fields Title, Effort, Assigned To, and Status with no customizations applied might look like this:
8
+
For example, a list with the fields Title, Effort, Assigned To, and Status with no customizations applied might look like this:
9
9
10
10

11
11
@@ -74,19 +74,19 @@ The following image shows an example of conditional formatting applied to a numb
74
74
75
75

76
76
77
-
This example customizes a number field to color that field red when its value less than 70. This example adds a style attribute to the parent `<div />` element, specifies a CSS class (`sp-field-severity--warning`) to apply to that item if the value inside the field is less than 70, and specifies no color if the value is outside that range (in which case it will use the default color for values in that list view).
78
-
Note: this example uses a binary operation with the less than operator, "<", nested inside the conditional operation indicated by the operator, ":". Another description of the section in the following example is: If @currentField < 70 Then class = sp-field-severity--warning.
77
+
This example customizes a number field to color that field yellow when its value is 70 or less. This example adds a style attribute to the parent `<div />` element, specifies a CSS class (`sp-field-severity--warning`) to apply to that item if the value inside the field is less than or equal to 70, and specifies no color if the value is outside that range (in which case it will use the default color for values in that list view).
78
+
Note: this example uses a binary operation with the less than operator, "<", nested inside the conditional operation indicated by the operator, "?". Another description of the section in the following example is: If @currentField <= 70 Then class = sp-field-severity--warning.
79
79
80
80
```JSON
81
81
{
82
82
"elmType": "div",
83
83
"txtContent": "@currentField",
84
84
"attributes": {
85
85
"class": {
86
-
"operator": ":",
86
+
"operator": "?",
87
87
"operands": [
88
88
{
89
-
"operator": "<",
89
+
"operator": "<=",
90
90
"operands": [
91
91
"@currentField",
92
92
70
@@ -112,12 +112,12 @@ This pattern is useful when you want different values to map to different levels
112
112
<!-- The schema URL will need to be updated when it is changed from customformatter to columnformatting -->
Copy file name to clipboardExpand all lines: docs/declarative-customization/site-theming/sharepoint-site-theming-csom.md
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,7 @@ Before you get started, make sure that you're familiar with the following:
7
7
-[Using the Client Object Model](https://msdn.microsoft.com/en-us/library/ff798388.aspx)
8
8
-[Common Programming Tasks in the Managed Client Object Model](https://msdn.microsoft.com/en-us/library/ee537013.aspx)
9
9
10
-
Install the following components for CSOM development:
11
-
12
-
*[SharePoint Server 2016 Client Component SDK](https://www.microsoft.com/en-us/download/details.aspx?id=51679)
13
-
*[Microsoft.SharePointOnline.CSOM](https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM/) NuGet package (version 16.1.6906.1200 or later)
10
+
You will also need to reference the [Microsoft.SharePointOnline.CSOM](https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM/) NuGet package (version 16.1.6906.1200 or later).
14
11
15
12
## CSOM code example
16
13
@@ -23,17 +20,19 @@ The following example shows how to create a __Microsoft.Online.SharePoint.Tenant
The methods described in this section are used to manage the available themes in your tenant. To _apply_a theme to a particular SharePoint website, use the [SPWeb.ApplyTheme](https://msdn.microsoft.com/en-us/library/office/jj251358.aspx) method of the [Microsoft.SharePoint.Client.Web](https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.client.web.aspx) class.
74
+
There's currently no supported API to programmatically apply a theme to specific site.
76
75
77
76
## Methods/properties of the Microsoft.Online.SharePoint.TenantAdministration.Tenant class
This property indicates whether the default themes are hidden in the theme picker UI for modern pages. You might want to set this property to __true__ after you define custom themes, to allow only specific themes to be used.
109
+
This property indicates whether the default themes are available in the theme picker UI. The default setting is __false__ (the default themes are available), but you might want to set this property to __true__ after you define custom themes, to allow only specific themes to be used.
Note that this example uses the PowerShell _ConvertTo-Json_ filter to display the theme in JSON format.
126
126
127
-
To see all the themes currently available in the tenant store, use **Get-SPOTheme** with no arguments.
128
-
129
-
```powershell
130
-
c:\> Get-SPOTheme
131
-
Blue
132
-
Orange
133
-
Red
134
-
Purple
135
-
Green
136
-
Gray
137
-
Dark Yellow
138
-
Dark Blue
139
-
Custom Cyan
140
-
```
141
127
## Remove-SPOTheme
142
128
143
129
The **Remove-SPOTheme** cmdlet removes a theme from your tenant store. For example, this cmdlet removes the "Custom Cyan" theme that was used in the previous examples.
*[SharePoint site theming: CSOM](sharepoint-site-theming-csom.md)
134
134
*[Complete basic operations using SharePoint REST endpoints](https://dev.office.com/sharepoint/docs/apis/rest/complete-basic-operations-using-sharepoint-rest-endpoints.md)
135
135
*[Making REST calls with C# and JavaScript for SharePoint 2013](http://www.microsoft.com/resources/msdn/en-us/office/media/video/video.mdl?cid=sdc&from=mscomsdc&VideoID=4e4cc094-ff69-405b-852f-2ac7c41293c5)
0 commit comments