Giter Site home page Giter Site logo

sachchinannam / spfx-extension-fullpagecanvas Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.74 MB

SharePoint Framework Extention to enable the page to use the full page canvas. The header at the top of the page with title, navigation and site icon is hidden when this app is enabled at the site.

License: MIT License

JavaScript 17.41% TypeScript 82.59%

spfx-extension-fullpagecanvas's Introduction

SharePoint Full Page Canvas App

This solution is created with SharePoint Framework for SharePoint Online.

A common requirement in the past with classic SharePoint solutions was to create start pages utilizing the full canvas of the page. In classic SharePoint this could easily be accomplished by adding a few lines of CSS in a Page Layout.

For modern pages we don't have Page Layouts anymore, and to accomplish the same result a SPFx Extention can be used. This is more spesific a Application Customizer registering one simple CSS override in the top placeholder of the page.

This solution will work with both Communication and Team Sites, but is recommended to be used with Communication Sites. This template will give us full control of the page canvas below the Office 365 suite bar. Using it on a Team Site will not make much sense as we have a different layout with a left navigation bar etc.

Common usage scenarios

  • Intranet front page
  • Global start page
  • Full page apps hosted in SharePoint Online

Example of communication site before the app is added

Example of communication site before the app is added

Example of communication site after the app is added

Example of communication site after the app is added

Getting started

git clone the repo
npm install
gulp serve

Depoyment and usage

Build the app with:

gulp bundle --ship
gulp package-solution --ship

Enable the app:

  1. Upload the file "spfx-extension-fullpagecanvas.sppkg" from "/sharepoint/solution" to the App Catalog.
  2. Go to either a modern Communication or Team Site.
  3. Go to "Site contents" and add new "App"
  4. Select "spfx-extension-fullpagecanvas" and wait for it to be installed
  5. Go to the front page and check if the header of the page is now hidden

spfx-extension-fullpagecanvas's People

Contributors

aflyen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.