altizure-plugin-featured-projects

0.2.2 • Public • Published

npm (tag) npm bundle size

npm peer dependency version

featured-projects

This npm module is for public distribution of the plugin.

usage

This plugin needs altizure defined. This plugin use the standard fetch API. User should polyfill on their own if he needs support IE. e.g. whatwg-fetch

API

pool.init pool.addListeners // identical to init pool.removeListeners pool.[force]UpdateProjectMarkers pool.[force]UpdatePins pool.[force]UpdatePinHeight pool.destruct

prefab.cache.forEach // [prefab].forEach

prefab.add prefab.pending // promise, after called add() prefab.addSpin prefab.destruct prefab.destructSpin prefab.destructMarkers

in js

This plugin has to be used together with the altizure module. Make sure altizure is in your dependencies (or devDependencies) list in package.json file.

await import('altizure')
cosnt { ProjectPool } = await import('altizure-plugin-featured-projects')

// It it necessary to import altizure before importing plugin

let sandbox = new Sandbox('page-content')
let pool = new ProjectPool({ sandbox })
pool.init()

in html

Include altizure-sdk.min.js before this plugin.

<head>
  <script type="text/javascript" src="https://unpkg.com/altizure/release/altizure-sdk.min.js"></script>
  <script type="text/javascript" src="https://unpkg.com/altizure-plugin-featured-projects"></script>
</head>
<body>
  <script>
    let sandbox = new altizure.Sandbox('page-content')
    let pool = new altizurePluginFeaturedProjects.ProjectPool({ sandbox })
    pool.init()
  </script>
</body>

Package Sidebar

Install

npm i altizure-plugin-featured-projects

Weekly Downloads

0

Version

0.2.2

License

ISC

Unpacked Size

15 kB

Total Files

3

Last publish

Collaborators

  • jingbo