1.7.3 • Published 6 years ago

@editvr/aframe-dialog-popup-component v1.7.3

Weekly downloads
31
License
GPL-3.0
Repository
github
Last release
6 years ago

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

1.7.3

6 years ago

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago