Ribbon is a central SharePoint 2010 feature, but for developer it is not so handy, as for a user.
This project aims to provide fluent API for Ribbon creation and managing in SharePoint 2010.
With Fluent Ribbon API, you are able to create your SharePoint Ribbon from code in a handy way, without single line of XML!
This project contains following main features:
- ContextualWebpart - base class for webparts with contextual ribbon tabs
- RibbonLayoutsPage - base class for Application Pages with ribbon
- RibbonCustomAction - alternative way for ribbon custom action provisioning
To receive the project news, you can either follow the project here on CodePlex, or
follow the author on Twitter.
Getting started with Fluent Ribbon API
Here is a little how-to on using FluentRibbon project in your custom ribbon projects.
- Add reference to FluentRibbon.dll from your SharePoint project
- Include FluentRibbon.dll in Package.package for GAC deploying ('Advanced' tab).
- Inherit either your webpart class or Application Page code behind class from corresponding FluentRibbon classes.
- Override ribbon definition method (GetContextualGroupDefinition or
GetTabDefinition), and provide ribbon definition to FluentRibbon.
Definition classes are well-documented, so you'll get intellisense and summary notes on each property.
Please, visit project documentation site, containing lots of samples, MSDN-style API reference, and several articles about SharePoint Fluent Ribbon API.
How to contribute
Any contributions are welcome!
Also, you can
tweet about Fluent Ribbon API project.