Code Monkey home page Code Monkey logo

bevyup-widgets's Introduction

BevyUp-Widgets

BevyUp widgets

##Usage

###Basic Usage

Add a div tag with class BevyUp_BoardViewerWidget on your page where you would like to include the board widget. Include your board name in a data-productlist attribute. If the name is not provided, the default name of Board will be used. This div can be styled, sized, and positioned as you would like. The widget will be placed inside this div, filling it horizontally and expanding vertically with the content.

<div class="container">
  <!-- header elements -->
  <div class="BevyUp_BoardViewerWidget" data-productlist="Board"></div>
  <!-- footer elements -->
</div>

Include one of the provided stylesheets, the viewer.js document on your page, and //cdn.bevyup.com/gts/your_partnerid/v1 with your partner ID.

<head>
  <!-- other header elements -->
  <link href="path/to/styleA.css" rel="stylesheet" type="text/css"/>
  <script src="path/to/viewer.js" type="text/javascript"></script>
  <script src="//cdn.bevyup.com/gts/your_partnerid/v1" type="text/javascript" async></script>
</head>

If the BevyUp_BoardViewerWidget is not found when the viewer script is loaded, you may call window.InitializeBoardWidget() and it will insert the widget.

###Advanced Usage

Clone this repository. Modify the templates or functionality in viewer.js. Refer to the BevyUpApi documentation for additional functionality. Include the files in the same way as the basic usage.

####Adding a Save Link

You will need to add an anchor tag to one of the templates with the bup_save_link class and send the user to your login page.

    base: '<div class="bup_board">' +
            '<div class="bup_board_title">BevyUp Board App</div>' +
            '<div class="bup_board_information">Review your saved and hidden products. <a class="bup_save_link" href="/login.php">Login to Save</a></div>' +
          '</div>',

This tag should redirect the user to your login page which redirects the user back to their board as per the documentation.

bevyup-widgets's People

Contributors

btoba avatar reymarx avatar

Watchers

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