[refactor][xs]: rename DataGrid to Grid for simplicity and consistency with file name.

This commit is contained in:
Rufus Pollock
2012-04-15 16:35:33 +01:00
parent 8097bd4791
commit 39a6c1eb74
5 changed files with 18 additions and 18 deletions

View File

@@ -1,10 +1,10 @@
(function ($) {
module("View - DataGrid");
module("View - Grid");
test('menu - hideColumn', function () {
var dataset = Fixture.getDataset();
var view = new recline.View.DataGrid({
var view = new recline.View.Grid({
model: dataset
});
$('.fixtures .test-datatable').append(view.el);
@@ -22,7 +22,7 @@ test('menu - hideColumn', function () {
test('state', function () {
var dataset = Fixture.getDataset();
var view = new recline.View.DataGrid({
var view = new recline.View.Grid({
model: dataset,
state: {
hiddenFields: ['z']
@@ -35,7 +35,7 @@ test('state', function () {
view.remove();
});
test('new DataGridRow View', function () {
test('new GridRow View', function () {
var $el = $('<tr />');
$('.fixtures .test-datatable').append($el);
var doc = new recline.Model.Document({
@@ -43,7 +43,7 @@ test('new DataGridRow View', function () {
'b': '2',
'a': '1'
});
var view = new recline.View.DataGridRow({
var view = new recline.View.GridRow({
model: doc
, el: $el
, fields: new recline.Model.FieldList([{id: 'a'}, {id: 'b'}])