Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ConceptPropertiesPanel = function() {
- this.source = { ***// if i set source this way, it will work***
- "(name)": "My Object",
- "Created": new Date(Date.parse('10/15/2006')),
- "Available": false,
- "Version": .01,
- "Description": "A test object"
- };
- ConceptPropertiesPanel.superclass.constructor.call(this, {
- id: 'concetp-properties',
- region: 'east',
- title: 'Concept Properties',
- autoScroll: true,
- margins: '0 5 0 0',
- split: true,
- width: 250,
- minSize: 250,
- maxSize: 400,
- collapsible: true,
- source: {}
- })
- setSourceData: function(data) { **//I want to set source when the below method is called, but not working**
- this.setSource({
- "(name)": "My Object",
- "Created": new Date(Date.parse('10/15/2006')),
- "Available": false,
- "Version": .01,
- "Description": "A test object"
- });
- }
- });
- var conceptPropertiesPanel = new ConceptPropertiesPanel();
- conceptPropertiesPanel.setSourceData(data);
- ConceptPropertiesPanel = function(config) {
- this.source = config || { ***// if i set source this way, it will work***
- "(name)": "My Object",
- "Created": new Date(Date.parse('10/15/2006')),
- "Available": false,
- "Version": .01,
- "Description": "A test object"
Add Comment
Please, Sign In to add comment