Git Product home page Git Product logo

Comments (6)

otakustay avatar otakustay commented on July 22, 2024
  1. mask属性的类型可以为Object,则当为Object的时候是什么意思,属性的结构是怎么样的?
  2. 删掉所有getXxxDOM方法
  3. 感觉少个close事件,当点击关闭按钮时触发

from esui.

DDDBear avatar DDDBear commented on July 22, 2024
  1. 写错了。。。
  2. 现在不需要了吗?虽然我没用上。。。。
  3. hide跟close不是一个概念是不?

from esui.

otakustay avatar otakustay commented on July 22, 2024
  1. 控件封装DOM,不得让使用者访问到任何自己管理的DOM,这是原则。
  2. hide应该是隐藏,下次还有show的时候,但close是关掉,再也不会回来了,我的理解对么……

from esui.

DDDBear avatar DDDBear commented on July 22, 2024

我在想应用场景。什么时候只需要hide而不是dispose掉整个控件。如果没有什么场景需要,是不是考虑将hide改为close,然后只保留一个接口?

from esui.

otakustay avatar otakustay commented on July 22, 2024

Ext的Dialog是这样设计的:

  • 默认点击关闭按钮是隐藏
  • 有一个closeOnHide属性,设为true时隐藏等于关闭

其实所有控件都有hide方法,我觉得Dialog的关闭按钮只管关闭就行

from esui.

DDDBear avatar DDDBear commented on July 22, 2024

觉着closeOnHide这个属性不错,当使用静态html创建dialog时其实是需要hide而不是close的,所以用这个属性可以允许用户配置。加上了。

from esui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.