This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Right now, Y.DataTable is only a namespace. But I want to be able to say new Y.DataTable({...}); | |
// We can do it. We have the technology. | |
// Step 1. Capture all the properties of the Y.DataTable namespace | |
// Y.merge creates a shallow copy of an object, and since Y.DataTable is just a namespace object, | |
// this works like a champ. You could now say new Stuff.Base({...}) to create a DataTable.Base | |
// instance. | |
var Stuff = Y.merge(Y.DataTable); | |
// Step 2. Replace the Y.DataTable namespace with a working DataTable.Base subclass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test Page</title> | |
<style> | |
.yui3-skin-sam .yui3-datatable .yui3-datatable-data .yui3-datatable-editing { | |
position: relative; | |
padding: 0; | |
} |
NewerOlder