2017 © Pedro Peláez
 

contao-module contao-widgetcollection

A collection of contao widgets.

image

heimrichhannot/contao-widgetcollection

A collection of contao widgets.

  • Friday, June 1, 2018
  • by digitales@heimrich-hannot.de
  • Repository
  • 6 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 38 % Grown

The README.md

Contao Widget Collection

Latest Stable Version Total Downloads, (*1)

This module is currently only used in a single Contao 3 project and not generally tested. Feedback is welcome., (*2)

This module is a collection of contao widgets that add some advanced (backend) validation to the input fields. They are designed to use with Formhybrid module., (*3)

Install

With composer:, (*4)

composer require heimrichhannot/contao-widgetcollection

Widgets

BIC (Swift) bicWidget

Validates a BIC/SWIFT-Adress., (*5)

Uses IsoCodes for validation., (*6)

Usage

'inputType' => 'bicWidget',

Birthday birthdayWidget

Validates a birthday., (*7)

Usage

'inputType' => 'birthdayWidget',
'eval'      => [
    'minAge' => 18, // Set a min age. Set 0 to disable
    'maxAge' => 0, // Set a max age. Set 0 to disable
    'format' => 'd.m.Y' // The format of the input date

]

IBAN ibanWidget

Validates an IBAN number., (*8)

Uses IsoCodes for validation., (*9)

Usage

'inputType' => 'ibanWidget',
'eval' => [
    'fields' => 22, // Number of input fields. Default is 22. 
    'prefill' => '' // A optional prefilled value, for example to set the typical country (example: "DE").
]

Phone phoneWidget

Validates a phone number., (*10)

Uses IsoCodes for validation., (*11)

Usage

'inputType' => 'phoneWidget',
'eval' => [
    'countries' => ['DE', 'AT'] // Array with country codes
]

Postal code postalWidget

Validate a postal code., (*12)

Uses IsoCodes for validation., (*13)

Usage

'inputType' => 'postalWidget',
'eval'      => [
    'countries' => ['DE', 'AT'] // Array with country codes
]

The Versions