Use Uikit modal dialog box to notice the place

Source: Internet
Author: User

XXX, in the evening to engage in three hours or so, just feel clear.

Multiple IDs should be aware of uniqueness.

In Django, the uniqueness of each cycle is also tricky.

Number of the parent loop

{{Forloop.parentloop.counter}}

Number of self-loops

{{Forloop.counter}}

<DivID= "my-id{{forloop.parentloop.counter}}-{{Forloop.counter}}"class= "Uk-modal" > <Divclass= "Uk-modal-dialog uk-modal-dialog-large" ><aclass= "Uk-modal-close uk-close"></a><H1>Upgrade dialog box</H1>  <Buttonclass= "Btn_modupdate Uk-button uk-button-success" >Begin</Button><Divclass= "Uk-progress">  <Divclass= "Uk-progress-bar uk-active"style= "width:40%;">40%</Div>  </Div><DivID= "Dia_output">Output</Div> </Div></Div> <ahref= "#my-id{{forloop.parentloop.counter}}-{{Forloop.counter}}"Data-uk-modal>Button</a

In addition, when the modal is closed, the data of the parent window is refreshed:

    $ ('. Uk-modal '). On ({        function() {            console.log ("modal is visible.") );        },        function() {            console.log ("Element is not visible.") );            Window.location.reload ()        }    );

Use Uikit modal dialog box to notice the place

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.