If I understand your problem correctly then you may want to try something like this.
CRUD::addField([
'name' => 'nameOfYourField',
'label' => 'nameOFLabel',
'type' => 'number',
'attributes' => [
'readonly' => 'readonly',
],
]);
Run Code Online (Sandbox Code Playgroud)
You can also use 'disabled' => 'disabled', but it depends what you want exatly to achieve with the values. Check it out here
| 归档时间: |
|
| 查看次数: |
245 次 |
| 最近记录: |