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"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>Normal Plot</title> | |
| <meta name="description" content=""> | |
| <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
| <style type="text/css"> |
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
| Rapid.itemController = SC.ObjectController.create({ | |
| //set your item .set('content', item) | |
| }); | |
| ------------------------------------------------------------------------------------ | |
| progressView: Rapid.ProgressView.design({ | |
| layout: {centerX:0, centerY:0, height:150, width:150, border:0}, | |
| isVisibleBinding: SC.Binding.from('Rapid.itemController*status').transform(function(value) { | |
| return !!(value & SC.Record.BUSY); | |
| }) | |
| }) |
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
| selectionDidChange: function() | |
| { | |
| if (this.changeTimer) | |
| this.changeTimer.destroy(); | |
| this.changeTimer = SC.Timer.schedule({ | |
| target: 'this', | |
| action: 'getSelectionData', | |
| interval: 500, | |
| until: Time.now() + 500 |
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
| require('core'); | |
| // objects are created by passing an object literal to the create() method | |
| // | |
| // Ofapisurfer.mainController = SC.Object.create({}) ; | |
| // is the same as | |
| // var obj = {} | |
| // Ofapisurfer.mainController = SC.object.create(obj); | |
| // |