Coder Social home page Coder Social logo

fagansc / spfximageslider Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 3.75 MB

SharePoint Framework Image Slider

License: Apache License 2.0

JavaScript 1.24% TypeScript 85.71% SCSS 13.04%
sharepoint sharepoint-online sharepoint-framework image-slider image-carousel webpart spfx cdn image-filter spfx-webpart

spfximageslider's Introduction

Image Slider

GitHub Release Date GitHub release (latest by date including pre-releases) Build Status SPFX Version GitHub issues GitHub all releases

Summary

This a SharePoint Online modern web part of an image slider, which cycles images from a Document Libray as a slideshow. It works with a series of images, text, or custom markup. It also includes support for previous/next controls and indicators.

The supporting Document Library is deployed when the solution is added to the site.

Screenshot

Updating from 1.0.0.0 to 1.1.0.0

On upgrade to 1.1.0.0, and you want to use the new Display Order Column, please add the column to the Default View. Screenshot

Applies to

3rd Party Packages

Office 365 CDN

The Office 365 CDN is used by default for downloading generic resource assets like the Office 365 client applications from a public origin.

This image slide supports the use of the Office 365 CDN by enabling the document library deployed with the soluiton by the following PowerShell commands.

Connect-SPOService https://<tenant>-admin.sharepoint.com
Set-SPOTenantCdnEnabled -CdnType Both -Enable $true
Add-SPOTenantCdnOrigin -CdnType Public -OriginUrl */SliderImgs

PowerShell Output Once enabled, just toggle the setting within the Web Part properties to utilize the Office 365 CDN to display your images.

Solution

Solution Author(s)
SPFX Image Slider Shawn Fagan

Version History

Version Date Comments
1.0.0.0 January 25, 2021 Initial release
1.1.0.0 February 13, 2021 Added New Order By Options
1.1.1.0 February 19, 2021 Corrected Pipeline Build Process

Current Features

  • Ability to adjust the Image Size
    • Small (Height: 300px)
    • Medium (Height: 350px)
    • Large (Height: 400px)
    • X-Large (Height: 450px)
  • Ability to adjust the Slide Speed
    • Min Speed: 5 Seconds inbetween slides
    • Max Speed: 30 Seconds inbetween slides
  • Ability to select the Display Image Filter
    • Display All Images within the Library
    • Display Images with the Enabled Flag set to Yes
    • Display Image based on the Publish Start & End fields
  • Ability to select the field to use to order of images to be displayed
    • Modified Date
    • Created Date
    • Display Order Field
  • Ability to select the direction of the field to order of images to be displayed
    • Ascending
    • Descending
  • Hide or Show the Image Caption
  • Hide or Show the Slide Indicators
  • Render Images using Office 365 Public CDN
  • Select a Default Image to display if no image is found in the libary

Future Features

  • Multplie Layout Options
  • Configurable Caption Settings
  • Configurable Indicators Settings
  • Use of Office 365 Private CDN
  • SharePoint Online Theme integration
  • Controlling required Document Library fields based on Image Filter

License

This web part is licensed under terms of Apache License V2.0. For further information see LICENSE file.

Contribute

Please feel free to comment, feedback and contribute to this. Remember that this repository is maintained by a single person, so please be courteous and patient.

References


Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.

spfximageslider's People

Contributors

fagansc avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

spfximageslider's Issues

Sort order by number

Suggestion (the more details, the better)

Add the ability to manually set the image sort order

Special Characters in file name

Expected or Desired Behavior

Filename (1).png should display image

Observed Behavior

Slide provisioned but no image displayed

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.