formers / former

A powerful form builder, for Laravel and other frameworks (stand-alone too)
https://formers.github.io/former/
1.34k stars 205 forks source link

Materialize framework config #558

Closed davidnathanael closed 6 years ago

davidnathanael commented 6 years ago

I'm trying to make this work with Materialize

Here's what I came out with :

'Materialize'             => array( // Materialize
  'viewports'           => array(
    'large'  => 'xl',
    'medium' => 'l',
    'small'  => 'm',
    'mini'   => 's',
  ),

  // Classes to be applied to wrapped labels in horizontal forms
  'wrappedLabelClasses' => array('inline'),

  // HTML markup and classes used by Materialize for icons
  'icon'                => array(
    'tag'    => 'i',
    'set'    => null,
    'prefix' => null,
  ),
  // CSS for inline validation errors
  'error_classes'       => array('data-error' => null),
)

Having a doubt with error_classes Is anyone using Materialize with former here? thanks

davidnathanael commented 6 years ago

just found out this wasnt enough by looking through the code. has anyone tried to implement this?

claar commented 6 years ago

PR's welcome! :)