Example #1
0
 public static function buildMany($inputConfigurations)
 {
     $string = '';
     foreach ($inputConfigurations as $config) {
         $string .= TextInput::build($config);
     }
     return $string;
 }
Example #2
0
 /**
  * To allow the greatest flexibility in the definition of this element,
  * a keyed array is passed.
  *
  * Required keys
  * * **label:** The label of the field.
  * * **type:** text|password|email|textarea
  * * **name:** The name of the field for POST data
  *
  * Optional keys
  * * **required:** true|false (default is false) - Whether the field is required or not.
  * * **hint:** An arbitrary non-block HTML string describing the purpose of the field.
  * * **errorMessage:** An arbitrary non-block HTML string describing the error found.
  * * **value:** The value of the text input field. Used for pre-filling POST or PATCH|UPDATE data. Note: Setting a value on a text input with a type of password, results in an empty text input.
  * 
  * @param  [type] $config [description]
  * @return [type]        [description]
  */
 public static function textInput($config)
 {
     return TextInput::build($config);
 }