[Zope3-Users] z3c.form: How to hide a button/define action
without a button?
Hermann Himmelbauer
dusty at qwer.tk
Thu Aug 9 13:26:04 EDT 2007
Am Donnerstag, 9. August 2007 04:08 schrieb Stephan Richter:
> On Monday 06 August 2007 10:41, Hermann Himmelbauer wrote:
> > Is there a way simple way to accomplish this? Perhaps via a "hidden=True"
> > attribute in the buttonAndHandler decorator method?
>
> I would override the ``updateActions()`` method in the form as follows:
>
> def updateActions(self):
> super(MyForm, self).updateActions()
> self.actions['store'].addClass('hidden')
>
> Then have a style:
>
> input.hidden {
> display: None;
> }
Great idea! This works out nicely! Thanks!
Best Regards,
Hermann
--
x1 at aon.at
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
More information about the Zope3-users
mailing list