SharePoint Ribbon Deep Dive

1,653
-1

Published on

Customizing the SharePoint 2010 ribbon - adding new tabs/groups/buttons, how to implement commands, advanced ribbon controls, FlyoutAnchor controls.

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,653
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
16
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Parent control won’t appear.Error “MenuSections can only have children of type MenuItem, Gallery or GroupPopup. - will get error below”No options appearOtherwise no options appear!
  • SharePoint Ribbon Deep Dive

    1. 1. (with credit to Andrew Connell)
    2. 2. www.sharepointnutsandbolts.com @ChrisO_BrienReal World SharePoint 2010 http://uk.linkedin.com/in/chrisobrienmvp
    3. 3. contextual tab group tab contextual tabribbon group control {template}
    4. 4. Advantages Disadvantages• Easy to create • If complex, hard to manage• Easy to manage • Lots of JavaScript can be• Great for simple commands hard to manage • Not cached on the client • Not reusable outside of the definition
    5. 5. Advantages Disadvantages• External JS library • Poor JavaScript dev tools• Easier to manage & debug • Must be added to the page• Can be minified • More work (build, register &• Allows for greater control initialize on page) over commands • All OO JavaScript • Enable/disable command • Block loss of focus• Reusable across customizations
    6. 6. Global Commands Focused Command• Always available when on a • Only available at specific times, page e.g. when web part has focus• (if CanExecute says it is • Example: Content Editor Web available) Part controls
    7. 7. SplitButton ToggleButton Spinner• Easy default plus • Off or on • Select within a sub-menu range
    8. 8. Server side:SPRibbon.MakeTabAvailable For contextual tabSPList.UserCustomActions Target an individual listJavaScript:RefreshCommandUI() Refresh ribbon, e.g. in async callbackSP.SOD.ExecuteOr Deal with JS dependenciesDelayUntilScriptLoaded()
    9. 9. http://bit.ly/utr2g8http://bit.ly/uVKABO
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×