Mip-lightbox Elastic Layer Assembly detailed mip-lightbox how to use the projectile layer

Source: Internet
Author: User

Title Content
Type General
Support layout N/s
The required script Https://mipcache.bdstatic.com/static/v1/mip-lightbox/mip-lightbox.js

Example

<button on= "Tap:my-lightbox.open" id= "Btn-open" role= "button" tabindex= "0" >

Open Lightbox

</button>

<mip-lightbox

Id= "My-lightbox"

layout= "Nodisplay"

class= "Mip-hidden" >

<div class= "Lightbox" >

<p> This is the lightbox</p>

</div>

</mip-lightbox>

Property

Id

Description: Component ID

Required option: Yes

Type: string

Layout

Description: Layout

Required option: Yes

Type: string

Take value: Nodisplay

Attention matters

Mip-lightbox is hidden by default, and the DOM node that is on the switch needs to set the On property, and the On property's property value is tap: Component Id.open.

The On property is set to the DOM node that closes the Lightbox, and the on property value is tap: Component Id.close.

The On property is also required to be set on the DOM node that is turning off Lightbox, and the on property value is tap: Component Id.toggle.

Mip-lightbox need a DIV child node, the calss of this div must have lightbox.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.