Issues

ZF-7638: AccordionContainer::getElementHtmlTemplate()

Issue Type: Bug Created: 2009-08-19T10:46:51.000+0000 Last Updated: 2009-09-09T10:32:30.000+0000 Status: Resolved Fix version(s): - 1.9.3 (22/Sep/09)

Reporter: Vladimir Michailenko (mich) Assignee: Benjamin Eberlei (beberlei) Tags: - ZendX_JQuery

Related issues: Attachments:

Description

Valid html template for current UI accordion is:

$this->_elementHtmlTemplate = '

%s

%s

';

Without

<

h3> tag UI is broken with default settings... Also it would be great if you provide functionality for changing

<

h3> tag or elementHtmlTemplate (via decorators or something else).

Comments

Posted by Gregory Wilson (drakos7) on 2009-09-03T14:07:04.000+0000

Verified here on 1.9.2 as well. Please commit this simple change.

Posted by Benjamin Eberlei (beberlei) on 2009-09-09T10:32:30.000+0000

Fixed in trunk and merged into 1.9 release branch. Added way to change HTML Template:

<pre class="highlight">
    public function testAccordionSetHtmlTemplate()
    {
        $this->view->getHelper('accordionContainer')->setElementHtmlTemplate("

%s

```%s`

");

        $this->view->accordionPane("container1", "foo", array('title' => 'foo'));
        $accordion = $this->view->accordionContainer("container1", array(), array());

        $this->assertEquals(
            '

foo

```foo`

',
            $accordion
        );
    }

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts