Skip to content

2.1.0

Compare
Choose a tag to compare
@inxilpro inxilpro released this 22 Apr 04:25
· 61 commits to master since this release

Adds support for custom auto_id generators:

Aire::setIdGenerator(function(Element $element, Form $form = null) {
  return 'input-'.$element->getInputName();
}

Aire comes with support for automatically generating input's id attribute, but the default implementation is focused on avoiding naming collisions, so IDs look something like __aire-1-password3. You can now replace this with your own ID generator to match a convention you set in your app.