Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将我的 ng2-smart-table 的添加/删除/编辑按钮的按钮类设置为“btn btn-sm btn-warning”。我怎样才能做到这一点?
您可以执行以下操作
settings = { add: { addButtonContent: '<i class="btn btn-sm btn-warning">Add</i>' }, edit: { editButtonContent: '<i class="btn btn-sm btn-warning">Edit</i>' }, delete: { deleteButtonContent: '<i class="btn btn-sm btn-warning">Delete</i>' } }