Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 1.81 KB

grouptemplate-element.md

File metadata and controls

77 lines (59 loc) · 1.81 KB
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
Server Ribbon schema
schema
de7dba66-d71d-45cc-9d8a-7f62a9de6a19
Defines the scaling behavior for controls in a Group element.

GroupTemplate element (Server Ribbon)

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"
/>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

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.

Child elements

Parent elements

Occurrences

  • Minimum: 0
  • Maximum: 1

Example

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>