Statistics
0
0
23d
Badges
Tags
forms

MDForms

Material Design style for Nette/Forms

This is Material Design style for Nette/Forms, that should made your life easier :)

Usage

    //Setup renderer
    $renderer = $form->getRenderer();
    $renderer->wrappers['controls']['container'] = null;
    $renderer->wrappers['pair']['container'] = 'div class="material"';
    $renderer->wrappers['label']['container'] = null;
    $renderer->wrappers['control']['container'] = null;

    //Inputs need to have class material
    $form->addText('test', 'Test input')->setAttribute('class', 'material');

No release at this moment. Try to create first one.

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com