GCJ*_*ghe 3 ng2-smart-table angular
这是我的三列的示例。我想自定义宽度大小。
resetPassword: {
title: this.gridTittle["ResetPassword"],
type: 'custom',
renderComponent: UserPasswordResetComponent,
filter: false
},
userName: {
title: this.gridTittle["UserName"],
},
roleTypeDescription: {
title: this.gridTittle["UserType"],
type: 'text',
filter: false
},
Run Code Online (Sandbox Code Playgroud)
您可以使用宽度属性。作为文档,“列宽示例:'20px','20%'”。在您的代码中:
resetPassword: {
title: this.gridTittle["ResetPassword"],
type: 'custom',
renderComponent: UserPasswordResetComponent,
filter: false,
width: 25%
},
userName: {
title: this.gridTittle["UserName"],
width: 25%
},
roleTypeDescription: {
title: this.gridTittle["UserType"],
type: 'text',
filter: false,
width: 50%
},
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11363 次 |
| 最近记录: |