@proximahq-dev/floorplans

2.3.25 • Public • Published

How to use

Import component style at the top of the page

<link rel="stylesheet" href="https://unpkg.com/@proximahq-dev/floorplans@latest/dist/floorplan-styles.css">

Create a wrapper element to contain the component

<div id="floorplansContainer" />

Add a script at the bottom of the body

<script src="https://unpkg.com/@proximahq-dev/floorplans@latest/dist/proxima-floorplans.umd.js"></script>

<script>
    const floorplans = new ProximaFloorplans({
      projectSlug: "slug (e.g. nikola)",
      cardDisplayInfo: ["type", "totalSize"], // optional
      moreModalDisplayInfo: ["totalSize", "interiorSize", "mezzanineSize", "floors", "type"] // optional
    });
    floorplans.init("floorplansContainer");
</script>

Types

cardDisplayInfo and moreModalDisplayInfo can accept the following values:

type InfoType =
    | "totalSize"
    | "interiorSize"
    | "exteriorSize"
    | "mezzanineSize"
    | "bedrooms"
    | "bathrooms"
    | "type"
    | "floors"
    | "buildings";

cardDisplayInfo can take up to 3 info values

moreModalDisplayInfo can take up to 6 info values

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.3.2562latest

Version History

VersionDownloads (Last 7 Days)Published
2.3.2562
2.3.24142
2.3.2323
2.3.228
2.3.212
2.3.201
2.3.191
2.3.181
2.3.170
2.3.161
2.3.150
2.3.140
2.3.130
2.3.120
2.3.110
2.3.101
2.3.90
2.3.82
2.3.70
2.3.60
2.3.51
2.3.40
2.3.30
2.3.20
2.3.10
2.3.00
2.2.240
2.2.230
2.2.220
2.2.211
2.2.202
2.2.192
2.2.180
2.2.170
2.2.150
2.2.140
2.2.130
2.2.120
2.2.110
2.2.100
2.2.90
2.2.81
2.2.70
2.2.60
2.2.50
2.2.41
2.2.30
2.2.10
2.2.00
2.1.80
2.1.70
2.1.60
2.1.50
2.1.40
2.1.31
2.1.21
2.1.10
2.1.00
2.0.90
2.0.80
2.0.70
2.0.61
2.0.50
2.0.41
2.0.30
2.0.20
2.0.00

Package Sidebar

Install

npm i @proximahq-dev/floorplans

Weekly Downloads

256

Version

2.3.25

License

none

Unpacked Size

1.09 MB

Total Files

4

Last publish

Collaborators

  • nbojanovic
  • zycproxima
  • armin-proxima