1.1.1 • Published 5 years ago

@moduware/morph-overlay v1.1.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

morph-overlay

License Published on webcomponents.org

Overlay that morphs for current mobile OS

The morph components is currently moving to use lit-element as base class. Most of the components in the master branch are already doing this and the old version using the polymer base class are found in the polymer-3.0 branch.

Getting Started

For the information about how to clone the desired repository, running the local server and testing, please refer to Polymorph elements getting started docs at the end of this repository.

Demo

<h4>Android morph-overlay interactive demo. Click the button to see overlay.</h4>
<morph-overlay id="androidOverlay" platform="android" onclick="closeAndroidOverlay()"></morph-overlay>
<morph-button platform="android" filled onclick="openAndroidOverlay()">Show Overlay</morph-button>
  • Here is a quick demo of the morph-overlay element
  <template>
    <h4>Android morph-overlay demo</h4>
    <morph-overlay id="androidOverlay" platform="android" onclick="closeAndroidOverlay()"></morph-overlay>
    <morph-button filled onclick="openAndroidOverlay()">Show Overlay</morph-button>
  </template>

Attributes

Custom AttributeTypeDescriptionDefault
platformStringName of the platform, get assigned automatically by the morph element.Either andorid or ios
openBooleanShows the state of the element, if it is open or not.false

Styling

-For Android platform;

Custom propertyDescriptionDefault
--android-background-colorBackground color of overlayrgba(0,0,0,0.2)

-For IOS platform;

Custom propertyDescriptionDefault
--ios-background-colorBackground color of overlayrgba(0,0,0,0)

Further help

For more information on how to install and run test please go here - Polymorph elements getting started