Easyui Dynamic Modification window title

Source: Internet
Author: User

Http://blog.csdn.net/liu251890347/article/details/39292307?utm_source=tuicool

Using Easyui as the foreground framework greatly saves the project resources, Easyui the official website document contains basically all the methods, but some flexibility of the method document is not found, such as dynamic replacement window properties, below a brief introduction to how to quickly replace the title property of the form.

1. Replace Panel properties directly

For example: $ (' #dr_auth '). Panel ({title: "new title"});

All forms inherit the methods in the panel, so they can be used directly.

2. Replace attributes with specific forms

For example: $ (' #dr_auth '). Dialog ({title: "new title"});

This usage is not recommended because it causes the page to reload.

Add the method that gets the form title or other properties:

[JavaScript] view Plaincopyprint?
  1. var opts = $ (' #dr_auth '). Panel (' Options ');
  2. var title = Opts.title; //Get Title Property

Easyui Dynamic Modification window title

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.