我有一个剑道上传和外部css文件,其中以下css已被覆盖:
ul.k-upload-files .k-upload-action {
display: none;
}
上述原因不允许用户在上传过程中删除或取消文件。但是我们现在也有一些功能,我们需要在选择文件后显示删除图标。我尝试在kendo上传的选择事件期间获取特定类,但没有用。
我希望你们有一些想法如何解决我的问题。
TIA
问候。
答案 0 :(得分:0)
要解决您的问题,您可以使用"成功"剑道上传,下面:
<?php
use yii\grid\GridView;
use yii\data\ActiveDataProvide;
use yii\grid\CheckboxColumn;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\Url;
//active form start
$form = ActiveForm::begin([
//send to 'key-in-attendance/save'
'action' => Url::to(['key-in-attendance/save']),
]) ?>
<?php
//keluarkan grifview
echo GridView::widget([
'dataProvider' =>$dataProvider,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id',
'student_name',
'class_id',
//checkbox untuk kehadiran
['class' => 'yii\grid\CheckboxColumn',
'checkboxOptions'=>['style'=>'display: block;margin-right: auto;margin-left: auto;'],
'header' => Html::checkBox('selection_all', false, [
'class' => 'select-on-check-all pull-right',
'label' => '<span class="pull-left">Check Attend Only</span>',//pull left the label
]),
'checkboxOptions' => function ($data, $key, $index, $column)
{
return ['value' => $index];
}
],
//text box utk masukkan sebab tak hadir
[
'class' => 'yii\grid\DataColumn',
'label'=> 'Reason not attend',
'value' => function ($data)
{
return Html::textarea("reason".$data->id);
},
'format'=>'raw'
],
[
'class' => 'yii\grid\DataColumn',
'value' => function ($data)
{
return Html::hiddeninput("sudent[]",$data->id);
},
'format'=>'raw'
],
],
]);
?>
<!-- butang submit dan tutup active form -->
<div class="form-group">
<div class="col-lg-offset-1 col-lg-11">
<?= Html::submitButton('Submit', ['class' => 'btn btn-primary']) ?>
</div>
</div>
<?php ActiveForm::end() ?>