[#384,ux][s]: tweak look of delete row buttons in slickgrid.

This commit is contained in:
Rufus Pollock
2014-03-04 21:07:53 +00:00
parent 529a254544
commit c38e1aacdc
4 changed files with 26 additions and 8 deletions

View File

@@ -73,8 +73,9 @@ my.SlickGrid = Backbone.View.extend({
// Template for row delete menu , change it if you don't love
this.templates = {
"deleterow" : '<a href="#" class="recline-row-delete btn">X</a>'
}
"deleterow" : '<a href="#" class="recline-row-delete btn" title="Delete row">X</a>'
};
_.bindAll(this, 'render', 'onRecordChanged');
this.listenTo(this.model.records, 'add remove reset', this.render);
this.listenTo(this.model.records, 'change', this.onRecordChanged);
@@ -160,10 +161,10 @@ my.SlickGrid = Backbone.View.extend({
&& this.state.get("gridOptions").enabledDelRow == true ){
columns.push({
id: 'del',
name: 'del',
name: '',
field: 'del',
sortable: true,
width: 80,
width: 38,
formatter: formatter,
validator:validator
})}