Comments (6)
ActionPanel
内部的逻辑能不能不要暴露给外面呢?而是通过一些事件机制来完成业务交互?
from ef.
谢回复。我指的是actionPanel的内部逻辑想要得到uiVIew里面的控件,然后操作
from ef.
我们不会做这些改变,因为一个ActionPanel加载的Action是任意且未知的,如我们通过用户自定义模板来加载一个子Action。此时无法确保子Action中的控件的id不会与ActionPanel所在的ViewContext冲突,因此这一隔离是必须的
如果你确实需要达到你的目的,让你的View重写createViewContext方法,可以想办法让外层把ViewContext的名称传过来,从而用er/ViewContext.get获取出来
但依旧不建议这么玩
Best regards
Gray Zhang
在 2015年3月20日 下午4:16:36, uraincay ([email protected]) 写到:
谢回复。我指的是actionPanel的内部逻辑想要得到uiVIew里面的控件,然后操作
—
Reply to this email directly or view it on GitHub.
from ef.
明白。刻意这么设计,为了隔离。
感觉已经在ActionPanel--->UIView--->ActionPanel--->UIView的逻辑中迷失。
借楼多问一个问题,一段复杂业务的功能块,是应该写成一个控件(包含很多子控件)还是子action(可以在template中写很多控件)怎么划分两者的界限?
当前我认为是有无数据请求,求解答。
from ef.
我一般就是按有无数据请求来分的
Best regards
Gray Zhang
在 2015年3月20日 下午7:18:34, uraincay ([email protected]) 写到:
明白。刻意这么设计,为了隔离。
感觉已经在ActionPanel--->UIView--->ActionPanel--->UIView的逻辑中迷失。
借楼多问一个问题,一段复杂业务的功能块,是应该写成一个控件(包含很多子控件)还是子action(可以在template中写很多控件)怎么划分两者的界限?
当前我认为是有无数据请求,求解答。
—
Reply to this email directly or view it on GitHub.
from ef.
好的!谢
from ef.
Related Issues (20)
- 尽量使用get接口而非属性
- ActionPanel和ActionDialog代理Action的事件
- 不再修改`uiEvents`
- ActionPanel添加比actionloaded更早的时机
- Model改变时自动更新视图 HOT 4
- 增强ActionPanel中子Action与父Action的事件交互 HOT 6
- ActionDialog自动销毁时应该阻止默认行为
- 一个子视图的控件
- UIView可以传递Model本身 HOT 4
- ChildView中控件的Validate不会在提交时触发 HOT 7
- ActionDialog计算位置的问题 HOT 2
- FormView未处理view name问题
- [UIView]replaceValue接口支持调用UIView的方法 HOT 1
- [UIModel]formatters可否将执行scope指向当前model HOT 2
- 异步的View#render HOT 5
- 问题探讨关于ActionPanel.action HOT 2
- EF/UIView 在查找model值的时候有个隐含的bug HOT 7
- problem HOT 1
- actionpanel用esui的方法监听不到事件 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ef.