mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°3750 New data-input-typeattribute to fields container
This will allow easiest DOM manipulation in BeHat tests !
This commit is contained in:
@@ -345,4 +345,9 @@ class Field extends UIContentBlock
|
||||
{
|
||||
$this->AddDataAttribute('input-id', $sInputId);
|
||||
}
|
||||
|
||||
public function SetInputType(string $sInputType)
|
||||
{
|
||||
$this->AddDataAttribute('input-type', $sInputType);
|
||||
}
|
||||
}
|
||||
@@ -32,6 +32,7 @@ class FieldUIBlockFactory extends AbstractUIBlockFactory
|
||||
'value_raw' => 'SetValueRaw',
|
||||
'comments' => 'SetComments',
|
||||
'input_id' => 'SetInputId',
|
||||
'input_type' => 'SetInputType',
|
||||
];
|
||||
foreach ($aParamsMapping as $sParamKey => $sFieldMethod) {
|
||||
self::UpdateFieldFromParams($oField, $sFieldMethod, $aParams, $sParamKey);
|
||||
|
||||
Reference in New Issue
Block a user