Wie mache ich eine Maske in bearbeitbarem yii2?Php

PHP-Programmierer chatten hier
Guest
 Wie mache ich eine Maske in bearbeitbarem yii2?

Post by Guest »

Ich habe einen solchen Code. Es ist wichtig, dass beim Bearbeiten eines Feldes eine Maske vorhanden ist: < /p>

Code: Select all

[
'attribute' => 'another_number',
'format' => 'raw',
'value' => \kartik\editable\Editable::widget([
'model' => $model,
'attribute' => 'another_number',
'asPopover' => false,
'inputType' => Editable::INPUT_TEXT,
'contentOptions' => ['class' => 'editable'],
'inlineSettings' => [
'closeButton' => '
[i][/i]
',
],
])
],
Ich brauche diese Maske: +7 (999) 999-99-99
yii2
Eingabe:

Code: Select all

'mask' => '+7 (999) 999-99-99'< /code> < /p>
Ausgabe:
Nothing< /code> < /p>

Eingabe:
'data-inputmask' => '+7 (999) 999-99-99'< /code> < /p>
Ausgabe:
Nothing

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post
  • So erstellen Sie ein Dropdown-Menü mit bearbeitbarem Textfeld in SwiftUI
    by Guest » » in IOS
    0 Replies
    3 Views
    Last post by Guest
  • So abonnieren Sie Mosquito für ein YII2-Projekt
    by Anonymous » » in Php
    0 Replies
    8 Views
    Last post by Anonymous
  • Yii2 Summernote-Widget stellt Symbolleistenoptionen ein
    by Guest » » in Php
    0 Replies
    3 Views
    Last post by Guest
  • Das Yii2 ActiveForm-Modell existiert nicht
    by Guest » » in Php
    0 Replies
    3 Views
    Last post by Guest
  • Das Yii2 ActiveForm-Modell existiert nicht
    by Guest » » in Php
    0 Replies
    4 Views
    Last post by Guest