NumberType
extends TICWidgetType
in package
Saisie d'une valeur numérique.
Reprise du widget symfony avec options supplémentaires
Tags
Table of Contents
Properties
- $class_prefix : mixed
- $class_suffix : mixed
- $default_prefix : mixed
- $default_suffix : mixed
- $form_alias : mixed
- ATTENTION: une propriété doit être vue comme une constante de classe ! Sa valeur sera commune aux différentes pseudo-instances des FormType.
- $form_parent : mixed
- $soft_required : mixed
Methods
- __construct() : mixed
- Initialisation du $form_alias.
- buildForm() : void
- {@inheritdoc}
- buildView() : void
- {@inheritdoc}
- configureOptions() : void
- {@inheritdoc}
- getBlockPrefix() : string
- {@inheritdoc}
- getParent() : string
- {@inheritdoc}
- generateContent() : mixed
- setViewGroupClass() : void
- Définition des classes à appliquer sur les conteneurs du widget (variables 'row_class' et 'group_class').
- setViewInputGroup() : void
- Définition des éventuels contenus préfixes & suffixes du widget.
- setViewInputSizing() : void
- Définition de la classe à appliquer pour la taille du widget (classe bootstrap).
- setViewReadOnly() : void
- Définition de l'état "lecture seule" du widget (variable et attribut HTML).
Properties
$class_prefix
protected
mixed
$class_prefix
= 'input-group-text'
$class_suffix
protected
mixed
$class_suffix
= 'input-group-text'
$default_prefix
protected
mixed
$default_prefix
= '<chevron-right>'
$default_suffix
protected
mixed
$default_suffix
= '<pencil>'
$form_alias
ATTENTION: une propriété doit être vue comme une constante de classe ! Sa valeur sera commune aux différentes pseudo-instances des FormType.
protected
mixed
$form_alias
= null
Ne pas s'en servir pour stocker des données dépendantes des options.
$form_parent
protected
mixed
$form_parent
= null
$soft_required
protected
mixed
$soft_required
= null
Methods
__construct()
Initialisation du $form_alias.
public
__construct() : mixed
buildForm()
{@inheritdoc}
public
buildForm(FormBuilderInterface $builder, array<string|int, mixed> $options) : void
Parameters
- $builder : FormBuilderInterface
- $options : array<string|int, mixed>
buildView()
{@inheritdoc}
public
buildView(FormView $view, FormInterface $form, array<string|int, mixed> $options) : void
Parameters
- $view : FormView
- $form : FormInterface
- $options : array<string|int, mixed>
configureOptions()
{@inheritdoc}
public
configureOptions(OptionsResolver $resolver) : void
Parameters
- $resolver : OptionsResolver
getBlockPrefix()
{@inheritdoc}
public
getBlockPrefix() : string
Return values
stringgetParent()
{@inheritdoc}
public
getParent() : string
Return values
stringgenerateContent()
protected
generateContent(mixed $value, mixed $default) : mixed
Parameters
- $value : mixed
- $default : mixed
setViewGroupClass()
Définition des classes à appliquer sur les conteneurs du widget (variables 'row_class' et 'group_class').
protected
setViewGroupClass(FormView $view[, mixed $options = array() ]) : void
Note: dépend des variables 'inline', 'input_group' et 'sizing'
Parameters
- $view : FormView
- $options : mixed = array()
setViewInputGroup()
Définition des éventuels contenus préfixes & suffixes du widget.
protected
setViewInputGroup(FormView $view[, mixed $options = array() ]) : void
Parameters
- $view : FormView
- $options : mixed = array()
setViewInputSizing()
Définition de la classe à appliquer pour la taille du widget (classe bootstrap).
protected
setViewInputSizing(FormView $view[, mixed $options = array() ]) : void
Note: dépend de la variable 'sizing'
Parameters
- $view : FormView
- $options : mixed = array()
setViewReadOnly()
Définition de l'état "lecture seule" du widget (variable et attribut HTML).
protected
setViewReadOnly(FormView $view[, mixed $options = array() ]) : void
Note: compatibilité ave l'option 'read_only' (deprecated)
Parameters
- $view : FormView
- $options : mixed = array()