Compare commits

...

1 Commits

Author SHA1 Message Date
Pete Richards
145360aff3 Reproduce #802 for testing 2016-03-30 11:44:25 -07:00
2 changed files with 43 additions and 1 deletions

View File

@@ -56,6 +56,27 @@ define([
});
tableInspector.addRegion(tableOptionsEditRegion);
function TestTableController($scope) {
$scope.headers = ['a', 'b', 'c'];
$scope.rows = [
{
a: { text: 1},
b: { text: 2},
c: { text: 3}
},
{
a: { text: 1},
b: { text: 2},
c: { text: 3}
},
{
a: { text: 1},
b: { text: 2},
c: { text: 3}
}
];
};
legacyRegistry.register("platform/features/table", {
"extensions": {
"types": [
@@ -121,8 +142,12 @@ define([
"key": "TableOptionsController",
"implementation": TableOptionsController,
"depends": ["$scope"]
},
{
"key": "TestTableController",
"implementation": TestTableController,
"depends": ["$scope"]
}
],
"views": [
{
@@ -146,6 +171,17 @@ define([
],
"delegation": true,
"editable": true
},
{
"name": "Test Table",
"key": "testTable",
"glyph": "\ue605",
"templateUrl": "templates/test-table.html",
"needs": [
"telemetry"
],
"delegation": true,
"editable": true
}
],
"directives": [

View File

@@ -0,0 +1,6 @@
<div ng-controller="TestTableController">
<mct-table
headers="headers"
rows="rows">
</mct-table>
</div>