我有几个关于锁定(如不允许用户修改)w2ui网格中的条目的问题:
有没有办法锁定可编辑列的某个单元格?
w2grid.lock
方法lock the whole grid。editable: true
更改为false
来lock one whole row。editable: true
将false
更改为 <div class="container-fluid" style="margin-top:10px;">
<div class="row">
<div class="col-sm-6 pull-right">
<div class="row">
<div class="col-sm-12 text-right">
<a class="btn btn-primary"
(click)="import()"
aria-label="Settings">
Import
<i class="fa fa-pencil" aria-hidden="true"></i>
</a>
<a class="btn btn-danger"
href="/myapp/export.json"
aria-label="Settings">
Export
<i class="fa fa-file-excel-o" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
</div>
<p-dialog appendTo="body"
[(visible)]="showImportDialog"
modal="modal" width="400" height="200"
header="Import File"
[closable]="true" [showHeader]="true">
<div class="container-fluid">
<form action="/myapp/import" enctype="multipart/form-data" method="POST">
<p>
<span>Upload : </span> <input type="file" name="initFileUpload" id="initFileUpload">
<br>
<button type="submit">Import </button>
</p>
</form>
</div>
</p-dialog>
</div>
。如何设置黄色锁图标,就像在lock a whole editable column底部的图片中一样?
提前致谢所有帮助