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
| /*global define*/ | |
| /*jshint laxcomma:true*/ | |
| define([ | |
| 'dojo/on' | |
| ], function(on) { | |
| 'use strict'; | |
| var _on = on; | |
| _on.switchable = function(target, type, listener1, listener2) { |
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
| define([ | |
| 'dojo/_base/declare', | |
| 'dojo/_base/lang', | |
| 'dojo/Deferred', | |
| 'esri/tasks/locator' | |
| ], function( | |
| declare, lang, | |
| Deferred, | |
| Locator | |
| ) { |
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
| define([ | |
| 'xstyle/css!./css/widget.css' | |
| ], function(){ | |
| // ... | |
| }); |
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
| { | |
| "name": "Esri-JS-xstyle", | |
| "version": "0.0.1", | |
| "dependencies": { | |
| "xstyle": "master" | |
| }, | |
| "resolutions": { | |
| "xstyle": "master" | |
| } | |
| } |
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
| packages: [{ | |
| name: 'xstyle', | |
| location: locationPath + 'vendor/xstyle' | |
| },... |
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
| define([ | |
| 'require', | |
| ... | |
| './model', | |
| 'text!./templates/mywidget.tpl.html', | |
| 'xstyle/css!./css/mywidget.css' | |
| ], function( | |
| require, | |
| declare, lang, | |
| _WidgetBase, _TemplatedMixin, |
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
| #popup-message { | |
| model = module('widgets/mywidget/model'); | |
| => | |
| div.esriSimpleSlider { | |
| text-align: left !important; | |
| padding:25px; | |
| } | |
| label 'State Name', | |
| input.form-control[placeholder=Search...][type=text](model/value) { | |
| on-keyup: model/updateValue(event); |
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
| define([ | |
| 'esri/tasks/FindTask', | |
| 'esri/tasks/FindParameters', | |
| 'esri/graphicsUtils' | |
| ], function( | |
| FindTask, FindParameters, gUtils | |
| ) { | |
| var model = { | |
| map: undefined, |
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
| define([ | |
| 'dojo/Deferred', | |
| 'dojo/_base/declare', | |
| 'dojo/_base/array', | |
| 'dojo/store/util/QueryResults', | |
| 'pouchdb/pouchdb' | |
| ], function ( | |
| Deferred, | |
| declare, arrayUtil, | |
| QueryResults, |
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
| selectedTemplate.featureLayer.applyEdits(newAdds, null, null) | |
| .then(function() { | |
| db.getAll().then(function(results) { | |
| console.debug('results', results); | |
| var graphics = results.map(function(r) { return new Graphic(r.doc.item); }); | |
| var docs = results.map(function(r) { return r.doc; }); | |
| selectedTemplate.featureLayer.applyEdits(graphics).then(function() { | |
| docs.map(function(doc) { | |
| db.delete(doc); | |
| }); |
OlderNewer