Use kendo ui window to create your own promise window (2), kendoui

Source: Internet
Author: User

Use kendo ui window to create your own promise window (2), kendoui

In the previous article, the promise window was not carefully considered. It only implemented its own close button, but the kendo window's own close button did not return a value when it clicked, and caused a very big bug. Sorry, I will try again today. I wrote the original appdialog file and replaced it if necessary. Sorry.

Var contexts ={}; var dialogCount = 0; var app = {getDialog: function (obj) {if (obj) {return obj. _ dialog __;} return undefined;}, close: function (obj) {var theDialog = this. getDialog (obj); if (theDialog) {var rest = Array. prototype. slice. call (arguments, 1); theDialog. close. apply (theDialog, rest) ;}, initOption: function (obj) {var kendo1_ption = {actions: ["Pin", "Refresh", "Maximize", "Minimize ", "Close"], draggable: true, pinned: true, height: "pixel PX", modal: true, resizable: true, title: "new", width: "700px "}; if (obj) {if (obj. actions) {kendow.ption. actions = obj. actions;} if (obj. height) {kendo1_ption. height = obj. height;} if (obj. width) {kendo1_ption. width = obj. width;} if (obj. title) {kendow.ption. title = obj. title ;}} return kendowindOption;}, showDialog: function (obj) {var dialogid = "dialog" + dialogCount; var dialogFilter = "#" + dialogid; if ($ (dialogFilter) = undefined | $ (dialogFilter ). length = 0) $ ("body "). append ('<div id = "' + dialogid + '"> </div>'); var instance = $ (dialogFilter ). data ("kendoWindow"); if (instance = undefined) {var kendo1_ption = this. initOption (obj); $ (dialogFilter ). kendoWindow (kendo1_ption);} var dfd = $. deferred (); instance = $ (dialogFilter ). data ("kendoWindow"); instance. bind ("close", function () {var args = instance. closeValue; if (args) {if (args. length = 0) {dfd. resolve ();} else if (args. length = 1) {dfd. resolve (args [0]);} else {dfd. resolve. apply (dfd, args) ;}} else {dfd. resolve () ;}$ (dialogFilter ). remove (); dialogCount = dialogCount-1; delete instance. _ dialog __;}); instance. _ dialog _ = {close: function () {var args = arguments; var rest = Array. prototype. slice. call (args, 1); instance. closeValue = args; instance. close. apply (instance, rest) ;}}; dialogCount = dialogCount + 1; instance. center (); var url = obj. url; instance. refresh ({url: url}); instance. open (); return dfd. promise ();}};



What is kendo ui? The source code I wrote down is html, css, and js.

The Kendo UI is built based on the latest WEB technologies HTML5, CSS3, and JavaScript.

The kendo ui can have two x axes when drawing a line chart.

Assume that the concentration in A1: A5 and B1 is B5. Click "insert"> "chart"> "line chart", "Next", and "Data zone "; select (or enter ):!
= $ B $1 in Sheet1: in category (X) axis label, select (or enter) $ B $5

Click "series ":

= Worksheet Sheet1 $ A $1 :! $ A $5
"Done.
 

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.