@@ -259,6 +284,12 @@ class InputPatternWidget extends WidgetBase {
'#title'=>$this->t('Custom class'),
'#default_value'=>$this->getSetting('class'),
];
$element['custom']=[
'#type'=>'textarea',
'#title'=>$this->t('Custom attributes'),
'#description'=>$this->t('Each variable is a new line. Can use with twig. Example: <br/>data-bs-toggle="tooltip"<br/>data-bs-title="{{entity.title.value}}"'),
'#default_value'=>$this->getSetting('custom'),
];
return$element;
}
...
...
@@ -317,10 +348,34 @@ class InputPatternWidget extends WidgetBase {