title | manager | ms.date | ms.audience | ms.topic | ms.localizationpriority | api_name | api_type | ms.assetid | description | ||
---|---|---|---|---|---|---|---|---|---|---|---|
GroupTemplate element (Server Ribbon) |
soliver |
3/9/2015 |
Developer |
reference |
medium |
|
|
de7dba66-d71d-45cc-9d8a-7f62a9de6a19 |
Defines the scaling behavior for controls in a Group element. |
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Defines the scaling behavior for controls in a Group element.
<GroupTemplate
Id="Text"
ClassName="CSS Class Selector"
/>
The following sections describe attributes, child elements, and parent elements.
Attribute | Description |
---|---|
Id |
Required. A string that unambiguously identifies the element, such as "Ribbon.Templates.CustomTemplateExample". |
ClassName |
Optional. The name of a CSS class selector to apply to the group. |
- Minimum: 0
- Maximum: 1
The following example defines a custom group template.
<GroupTemplate Id="Ribbon.Templates.CustomTemplateExample">
<Layout
Title="OneLargeTwoMedium" LayoutTitle="OneLargeTwoMedium">
<Section Alignment="Top" Type="OneRow">
<Row>
<ControlRef DisplayMode="Large" TemplateAlias="row1" />
</Row>
</Section>
<Section Alignment="Top" Type="TwoRow">
<Row>
<ControlRef DisplayMode="Medium" TemplateAlias="row2" />
</Row>
<Row>
<ControlRef DisplayMode="Medium" TemplateAlias="row3" />
</Row>
</Section>
</Layout>
</GroupTemplate>