TabContainer example



    /** * Creates an Ext js tab panel. * * @param string $name * * @return TabContainer */
    protected function createTabPanel($name, array $options = [])
    {
        $element = new TabContainer($name);
        $element->fromArray($options);

        return $element;
    }

    /** * Creates an Ext js form field. * * @param string $name * @param string $title * * @return FieldSet */
public function synchronize(Theme $theme)
    {
        // prevents the theme configuration lazy loading         $template = $this->getTemplate($theme);
        if (!$template instanceof Template) {
            $this->logger->error(sprintf('Could not synchronize theme. "%s" instance for theme "%s" not found', Template::class$theme->getName()));

            return;
        }

        // static main container which generated for each theme configuration.         $container = new TabContainer('main_container');

        // inject the inheritance config container.         $this->injectConfig($theme$container);

        $this->eventManager->notify('Theme_Configurator_Container_Injected', [
            'theme' => $theme,
            'template' => $template,
            'container' => $container,
        ]);

        $theme->createConfig($container);

        
Home | Imprint | This part of the site doesn't use cookies.