[html-formfu] custom element with automatic constraint

Steve Caldwell info-formfu at caldwellhb.com
Tue Feb 26 01:49:59 GMT 2008


All,

Because I have so many instances of this in my code:

  - type: Select
    ...
    constraints:
      - type: AutoSet


I wanted to create a custom class that inherits from Element::Select and
automatically includes AutoSet as a constraint.  After poking around at
the documentation/code for a little bit, it's not immediately obvious to
me how to do this.  Has anyone tried this before, or have any advice on
where I could look?

Thanks,
Steve



More information about the HTML-FormFu mailing list