akveo / akveo/ng2-smart-table

how to change the width of the custom column.

Ouverte
#1,171 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
1.6k
Forks
867
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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;
}

````

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.