简体   繁体   English

造型海边确认对话框

[英]Styling seaside confirm dialog

Seaside has a convenient message WAComponent>>confirm: that creates a dialog with yes/no buttons, however there is no CSS styling on this component. Seaside 有一个方便的消息WAComponent>>confirm:创建一个带有是/否按钮的对话框,但是此组件上没有 CSS 样式。 Is it possible to add styling to this component or do I need to subclass WAYesOrNoDialog in my app to do that?是否可以向该组件添加样式,或者我是否需要在我的应用程序中子类WAYesOrNoDialog才能做到这一点?

There are two ways to apply your styles to the WAYesOrNoDialog :有两种方法可以将您的 styles 应用于WAYesOrNoDialog

  1. If your calling it from your top level component, then subclassing it is the way, but you'd still need to implement confirm:onAnswer: on your own component to reference you're own class.如果您从顶级组件调用它,那么子类化就是这种方式,但您仍然需要在您自己的组件上实现confirm:onAnswer:以引用您自己的 class。

  2. If you call it from within another component (that is not top level), you can render the component that's going to perform the confirm:onAnswer: within a <div> in the parent component.如果您从另一个组件(不是顶级组件)中调用它,您可以在父组件的<div>中呈现将要执行confirm:onAnswer:的组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM