• window


    <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="window.aspx.cs" Inherits="Extjs.window" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
        <script src="extjs/examples/shared/examples.js" type="text/javascript"></script>
        <link href="extjs/examples/shared/example.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        Ext.require([
            'Ext.window.MessageBox',
            'Ext.tip.*'
        ]);
        Ext.onReady(function () {
            Ext.create('Ext.window.Window', {
                title: 'Ext.window',
                height: 200,
                400,
                layout: 'fit'
            }).show();

            var click = Ext.get('click');
            click.on('click', function (e) {
                Ext.create('Ext.window.Window', {
                    title: 'click show window',
                    height: 200,
                    400,
                    layout: 'fit'
                }).show();
            });

            var dbclick = Ext.get('dbclick')
            dbclick.on('dblclick', function (e) {
                Ext.create('Ext.window.Window', {
                    title: 'dbclick show window',
                    height: 200,
                    400,
                    layout: 'fit'
                }).show();
            });

            var Alert = Ext.get('Alert');
            Alert.on('click', function (e) {
                Ext.Msg.alert('Status', 'Changes saved successfully.');
            });

            var prompt = Ext.get('prompt');
            prompt.on('click', function (e) {
                Ext.Msg.prompt('Status', "Standard prompt dialog.", function (btn, text) {
                    if (btn == 'ok') {
                        Ext.Msg.alert('Status', "You selected ok button");
                    }
                })
            });

            var config = Ext.get('config');
            config.on('click', function (e) {
                Ext.Msg.show({
                    title: 'Save Changes?',
                    msg: 'You are closing a tab that has unsaved changes. Would you like to save your changes?',
                    icon: Ext.window.MessageBox.QUESTION,
                    buttons: Ext.Msg.YESNOCANCEL
                });
            });

            var yesno = Ext.get('yesno');
            yesno.on('click', function (e) {
                Ext.MessageBox.confirm('Confirm', 'Are you sure you want to do that?', showResult);
            });

            function showResult(btn) {
                Ext.example.msg('Button Click', 'You clicked the {0} button', btn);
            };


        });

    </script>
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p id="click">click</p><br />
    <p id="dbclick">double click</p><br />
    <p id="Alert">Alert</p><br />
    <p id="prompt">Prompt</p><br />
    <p id="config">Yes/No/Cancel</p><br />
    <p id="yesno">Yes/No</p>
    </asp:Content>
  • 相关阅读:
    HP Nonstop SQLMX (SPJ) Stored Procedure in Javas Getting Started
    Term of Wall Street
    iOS自带地图纠偏问题
    Android 界面排版的5种方式
    Android底部导航栏
    Android中Intent传值与Bundle传值的区别详解
    Android开发EditText属性
    从点击一个链接到浏览器显示页面,这个过程中发生了什么?
    HTML的常用标签属性及使用时需注意的一些细节
    写一个简单的脚本,并在脚本生成的的文件中添加内容
  • 原文地址:https://www.cnblogs.com/lion/p/2081345.html
Copyright © 2020-2023  润新知