akveo / akveo/ng2-smart-table

how to change the width of the custom column.

未关闭
#1,171 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

I want to change the width of the custom column i created. i want to decrease the size of the column header and column width. How can i achieve this. please guide me.
ts
````
settings = {
// actions: false,
actions: {
position: 'right',
columnTitle: 'Actions',
custom: [
{
name: 'edit',
title: '',

},
{
name: 'view',
title: '',
},

],
add: false,
edit: false,
delete: false,
},

};
````
scss
````
:host /deep/ ng2-st-tbody-edit-delete {
display: flex !important;
height: 0 !important;
}

:host /deep/ ng2-st-tbody-custom a.ng2-smart-action.ng2-smart-action-custom-custom {
display: inline-block;
width: 60px;
text-align: right;
font-size: 0.5em;
}

:host /deep/ ng2-st-tbody-custom a.ng2-smart-action.ng2-smart-action-custom-custom:hover {
color: #3f4fda;
}
:host /deep/ ng2-st-thead-custom a.ng2-smart-action.ng2-smart-action-custom-custom {
width: 10px;
}

````

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。