Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@editvr/aframe-dialog-popup-component

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@editvr/aframe-dialog-popup-component

Provides a component that constructs a toggle-able dialog with a title, description, image, and close button.

  • 1.7.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

aframe-dialog-popup-component

Version CircleCI License

Provides a component that constructs a toggle-able dialog with a title, description, image, and close button.

For A-Frame.

API

PropertyDescriptionDefault Value
titleString containing title.New Dialog
titleColorText color of title.black
titleFontTitle font.mozillavr
titleWrapCountTitle entity wrap count.24
bodyString containing body.This dialog has no body yet.
bodyColorText color of body.black
bodyFontBody font.mozillavr
bodyWrapCountBody entity wrap count.30
openOnOpen/Close event.click
activeTurn dialog on/off.true
openIconImageIcon image for open button.None
openIconRadiusRadius for open icon.0.3
openIconColorColor for open icon.white
closeIconImageIcon image for open button.None
closeIconRadiusRadius for close icon.0.3
closeIconColorColor for close icon.white
imagePath to Dialog hero image.None
imageWidthDialog hero image width.2
imageHeightDialog hero image height.2
dialogBoxWidthDialog box width.4
dialogBoxHeightDialog box height.4
dialogBoxColorDialog box background color.white
dialogBoxPaddingDialog box padding.0.2

Installation

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
  <script src="https://unpkg.com/@editvr/aframe-dialog-popup-component@1.7.2/dist/aframe-dialog-popup-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity dialog-popup="title: My Title; body: My Body"></a-entity>
  </a-scene>
</body>
npm

Install via npm:

npm install @editvr/aframe-dialog-popup-component

Then require and use.

require('aframe');
require('@editvr/aframe-dialog-popup-component');

Example

Closed

Closed

Opened

Open

Keywords

FAQs

Package last updated on 03 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc