Coder Social home page Coder Social logo

rakeshsharepointdeveloper / sp2019-search Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matej4386/sp2019-search

0.0 0.0 0.0 943 KB

SP2019 Search webpart (Search Box, Refiners/Filters, Pagination and Search Results)

JavaScript 4.73% TypeScript 86.01% HTML 4.70% SCSS 4.55%

sp2019-search's Introduction

SP2019-search

SP2019 Search webpart (searchBox, Refiners, searchResults)

SP2019 on-prem version for https://microsoft-search.github.io/pnp-modern-search/

This solution consists of 1 webpart - it renders Search results webpart which was modified to handle search box web part, filters web part and pagination from original solution. Main webpart renders SearchResultsContainer with components SearchBox and SearchRefiners. Due to this you cant turn off Search results and have for example just search box on page. Due to the orginal version which is using Dynamic connectors - i needed to make some variables (like query string from search box, filters, ...) part of state of search results.

New version:

  1. support search box, filters, pagination, search results with templates
  2. Search box, filters, pagination can be turned off
  3. Search localization is turned of (settings are commented in code - you can uncomment it and test it on your enviroment- on my enviroment it caused error (GUID))
  4. Theme support was deleted - it is not supported on SP2019. I am using separate extension to set my custom theme.
  5. Search results templates: Simple list, Details list, Tiles, Carousel, People, Debug, Custom
  6. In case you want your own template please see documation here: https://microsoft-search.github.io/pnp-modern-search/

Be aware - i am still testing/developing/updating this web part (in case of time), some changes are not fancy and not nice but i did my best. There is still bunch of code that can be deleted/modified/... Localization is for english and I think that there can be some strings that are not used :-) Localizaton is in one file.

This webpart is mainly for at least a little bit experienced user with ability to build, package solution and maybe made some changes in this solution. Please leave a comment with any suggestion. If you need more information about this solution please let me know - i will try to responde as soon as possible.

sp2019-search's People

Contributors

matej4386 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.