zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    php中常用的字符串函数,大全了
    php写的验证码实现方法
    简单的php做的一个验证码生成方案
    ActiveMQ+SpringMVC+Maven应用示例
    zookeeper简单操作
    zookeeper基本概念及原理
    zookeeper 事务日志与快照日志
    activeMQ安装与测试
    activeMQ "HelloWorld"实现
    JMS基本概念
  • 原文地址:https://www.cnblogs.com/lion/p/2081345.html
Copyright © 2011-2022 走看看