SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru risoknop's Avatar
    Join Date
    Feb 2008
    Location
    end($world)
    Posts
    834
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Zend_Form_Element_MultiCheckbox question

    Hello,

    is it possible to assign a different class to every checkbox when using Zend_Form_Element_MultiCheckbox? If yes, how can I do it?

  2. #2
    SitePoint Guru
    Join Date
    Jan 2005
    Location
    heaven
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No. You would have to use Zend_Form_Element_Checkbox to assign different classes. Another option would be to use ViewScript decorator and assign the element a stack of attributes that relate to the option stack. Then in the ViewScript get the attributes you assigned from the attributes array and render the checkbox stack assigning the class you want to each.
    Creativity knows no other restraint than the
    confines of a small mind.
    - Me
    Geekly Humor
    Oh baby! Check out the design patterns on that framework!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •