2017-06-06 6 views
0

laravelのバックパッククラッドの特定の列の列幅を減らすことは可能ですか?それを可能にする列を追加する属性はありますか?画像上laravel列幅のバックパック

は私がglyphicon-OKのために1秒を交換したい、表示された、しかし、私は、事前にそれ

image

public function setup(){ 

    $this->crud->setModel("App\ReporteParamEstacion"); 
    $this->crud->setRoute("admin/reporte_paramestacion"); 
    // $this->crud->setRouteName("crud.reportes.listado_importacion"); 
    $this->crud->setEntityNameStrings('parametro estacion', 'parametro estaciones'); 
    $this->crud->enableExportButtons(); 
    $this->crud->removeAllButtons(); 

    $this->crud->addColumn([ 
    'name' => 'nombre', 
    'label' =>'Estacion', 
    'type' => 'text' 
    ]); 

    $this->crud->addColumn([ 
    'name' => 'nombre_comuna', 
    'label' =>'Comuna', 
    'type' => 'text' 
    ]); 

    $this->crud->addColumn([ 
    'name' => 'MP10', 
    'label' =>'MP10', 
    'type' => 'text' 


    ]); 

    $this->crud->addColumn([ 
    'name' => 'MP25', 
    'label' =>'MP25', 
    'type' => 'text' 

    ]); 

    $this->crud->addColumn([ 
    'name' => 'SO2', 
    'label' =>'SO2', 
    'type' => 'text' 
    ]); 

    $this->crud->addColumn([ 
    'name' => 'NO2', 
    'label' =>'NO2', 
    'type' => 'text' 
    ]); 

    $this->crud->addColumn([ 
    'name' => 'CO', 
    'label' =>'CO', 
    'type' => 'text' 

    ]); 

    $this->crud->addColumn([ 
    'name' => 'O3', 
    'label' =>'O3', 
    'type' => 'text' 
    ]); 

    $this->crud->addColumn([ 
    'name' => 'BC', 
    'label' =>'BC', 
    'type' => 'text' 
    ]); 

    $this->crud->addColumn([ 
    'name' => 'NOX', 
    'label' =>'NOX', 
    'type' => 'text' 
    ]); 
} 

感謝を行うための方法を見つけることができません

+0

代わりにチェック欄のタイプを使用する必要があります。https://laravel-backpack.readme.io/docs/crud-columns-types – tabacitu

答えて

0

[ 'name' => 'mp10', // The db column name :セットタイプは次のように "チェック" します 'type' => 'check' ]

+0

あまりにも列幅を小さくすることができますか? –

+0

私はPDF形式でのエクスポートに問題があったのでタイプチェックから変更しなければならなかった、アイコンをpdfにエクスポートできないようだ –

関連する問題