Skip to content

Missing 'attr' config field in TextType doc #9949

Closed
@QuentinCurtet

Description

@QuentinCurtet

Hello,

This doc : https://symfony.com/doc/current/reference/forms/types/text.html said that it's actually not possible to use "attr" option on a TextType but when we use it, it's ok and the 'attr' is affected to the field.

Example of config :

'id' => 'MyId',
'type' => TextType::class?
'options' => [
	'label' => 'MyLabel',
	'label_attr' => ['class' => 'control-label'],
	'attr' => ['class' => 'form-control']
]

Metadata

Metadata

Assignees

Labels

FormhasPRA Pull Request has already been submitted for this issue.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions