Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Référence du fichier layouts/joomla/form/field/number.php

Espaces de nommage

 Joomla\Site
 

Variables

 $autocomplete = !$autocomplete ? ' autocomplete="off"' : ' autocomplete="' . $autocomplete . '"'
 
 $attributes
 
if(is_numeric($value)) else
 
 $value = ($required && isset($min)) ? $min : $value
 

Documentation des variables

◆ $attributes

$attributes
Valeur initiale :
= array(
!empty($class) ? 'class="' . $class . '"' : '',
!empty($size) ? 'size="' . $size . '"' : '',
$disabled ? 'disabled' : '',
$readonly ? 'readonly' : '',
strlen($hint) ? 'placeholder="' . htmlspecialchars($hint, ENT_COMPAT, 'UTF-8') . '"' : '',
!empty($onchange) ? 'onchange="' . $onchange . '"' : '',
isset($max) ? 'max="' . $max . '"' : '',
!empty($step) ? 'step="' . $step . '"' : '',
isset($min) ? 'min="' . $min . '"' : '',
$required ? 'required aria-required="true"' : '',
$autofocus ? 'autofocus' : ''
)
$required
Definition: components/com_contact/layouts/joomla/form/renderfield.php:43
$autofocus
Definition: advanced.php:79
else ENT_COMPAT
Definition: components/com_newsfeeds/views/category/tmpl/default_items.php:20
$class
Definition: components/com_modules/views/module/tmpl/edit_options.php:19
$hint
Definition: advanced.php:66
$autocomplete
Definition: layouts/joomla/form/field/number.php:48
htmlspecialchars(json_encode( $options))
Definition: plugins/editors/codemirror/layouts/editors/codemirror/element.php:34
$disabled
Definition: administrator/templates/hathor/html/com_banners/banners/default.php:177
$onchange
Definition: layouts/joomla/form/field/checkboxes.php:78
empty($onchange) ? null if($required) if(strtoupper($value)=='NOW') $readonly
Definition: layouts/joomla/form/field/calendar.php:87

◆ $autocomplete

$autocomplete = !$autocomplete ? ' autocomplete="off"' : ' autocomplete="' . $autocomplete . '"'

◆ $value

$value = ($required && isset($min)) ? $min : $value

◆ else

if (is_numeric( $value)) else
Valeur initiale :
{
$value = ''
$value
Definition: layouts/joomla/form/field/number.php:73