123456789101112131415161718192021222324252627282930313233343536 |
- define( function() {
- "use strict";
- function Control()
- {
- };
- Control.prototype.draw = function( oControlHost )
- {
- oControlHost.container.innerHTML =
- '<style>' +
- '.MyPromptButton' +
- '{' +
- 'background-color: white;' +
- 'border: 2px solid #4178BE;' +
- 'color: #4178be;' +
- 'font-size: 14px;' +
- 'height: 32px;' +
- 'width: 120px;' +
- 'margin-left: 20px;' +
- 'cursor: pointer;' +
- '} ' +
- '.MyPromptButton:hover' +
- '{' +
- 'background-color: #4178BE;' +
- 'color: white;' +
- '}' +
- '</style>' +
- '<button class="MyPromptButton btn1">Submit</button>' +
- '<button class="MyPromptButton btn2">Cancel</button>';
- oControlHost.container.querySelector( ".btn1" ).onclick = oControlHost.finish.bind( oControlHost );
- oControlHost.container.querySelector( ".btn2" ).onclick = oControlHost.cancel.bind( oControlHost );
- };
- return Control;
- });
|