durandal

does dropzone-amd-module.js support IE 11?

蹲街弑〆低调 提交于 2021-01-29 07:12:01
问题 Per the dropzone site version 5.0 should support IE10+. I am using dropzone-amd-module.js ver 5.5 in a Durandal app and IE11 does not seem to support Symbol.iterator . Since I need to support IE11 at least for a little while I'm looking for options. Does any know what the latest version of dropzone-amd-module.js is that will run in IE11? 回答1: The fix was to remove any reference to Symbol.iterator wherever it occurs (a few dozen places) from dropzone-amd-module.js like this: replace this for

using amd modules with typescript

我的未来我决定 提交于 2021-01-29 04:27:40
问题 I am working on an Durandal spa and would like to write new code in typescript. Is there a way to mix amd modules with typescript classes? This an example of an amd module. I removed some code from the module to make it more readable. define(['durandal/app', 'durandal/system', 'config', 'amplify'], function (app, system, config, amplify) { var exports = {}; var init = function () { ... }; var onRequestError = function(response, status) { ... }; exports.getTablePresentation = function (lemmaId

using amd modules with typescript

假如想象 提交于 2021-01-29 04:21:41
问题 I am working on an Durandal spa and would like to write new code in typescript. Is there a way to mix amd modules with typescript classes? This an example of an amd module. I removed some code from the module to make it more readable. define(['durandal/app', 'durandal/system', 'config', 'amplify'], function (app, system, config, amplify) { var exports = {}; var init = function () { ... }; var onRequestError = function(response, status) { ... }; exports.getTablePresentation = function (lemmaId

property 'isvalid' does not exist on type 'KnockoutObservable'

时间秒杀一切 提交于 2021-01-28 15:02:17
问题 I have just started switching from javascript to typescipt. I am using knockout for obvious advantages it has to offer. I need to define a knockout computed observable which is dependent on the value of another knockout observable. Return true if the observable is valid else return false. This is how I have structured the code - class anyClass { private address: KnockoutObservable<any> = ko.observable().extend({ required : true}); private canPrintAddresses : KnockoutComputed<boolean> = ko

property 'isvalid' does not exist on type 'KnockoutObservable'

点点圈 提交于 2021-01-28 15:01:26
问题 I have just started switching from javascript to typescipt. I am using knockout for obvious advantages it has to offer. I need to define a knockout computed observable which is dependent on the value of another knockout observable. Return true if the observable is valid else return false. This is how I have structured the code - class anyClass { private address: KnockoutObservable<any> = ko.observable().extend({ required : true}); private canPrintAddresses : KnockoutComputed<boolean> = ko

Gulpfile.js failed to load

一个人想着一个人 提交于 2020-07-20 08:37:26
问题 Visual Studio task runner cannot load the gulp file. I use VS2017 v15.9.4 now, however, the project developed some years ago. Failed to run "...\Gulpfile.js"... cmd.exe /c gulp --tasks-simple assert.js:350 throw err; ^ AssertionError [ERR_ASSERTION]: Task function must be specified at Gulp.set [as _setTask] (...\node_modules\undertaker\lib\set-task.js:10:3) at Gulp.task (...\node_modules\undertaker\lib\task.js:13:8) at Object.<anonymous> (...\gulpfile.js:34:6) at Module._compile (internal

Durandal modal/dialog context that allows scrolling on mobile devices

旧街凉风 提交于 2020-01-25 01:09:22
问题 Durandal provides a modal dialog facility which works great on desktop devices, and it allows you to control the presentation of the dialog via the "dialog context". The default dialog context will, among other things, "display your dialog's view centered on the screen." Observationally, I can see that this means centering the dialog in the viewport--which means that as you scroll up and down, it remains in the same location, in the middle of your viewport. This works fine a screen large

ko.validation.group did not detect my errors on my nested observableArray

陌路散爱 提交于 2020-01-24 10:07:45
问题 I develop a project with Durandal/Breeze using intensive Knockout bindings. I have a view which is using the following observable: packing - description - weight - ... - isotopes - name - activity - ... As you can see above: my packing observable contains an isotopes observableArray inside. This packing object is filled from breeze with a query. var query = entityQuery.from('Packings') .where('id', '==', packingId) .expand('isotopes'); I try to set validation in place for all of this using ko

Dynamic composition using knockout and durandal doesn't work

北战南征 提交于 2020-01-16 00:40:26
问题 I have a strange problem while using Durandal/Knockout. In some cases the binding doesn't work properly. I've simplified my situation which came in this question. I'm setting composition info somewhere in my code like: compositionInfo({ model: viewModelInstance, view: viewName, activate: viewModelInstance.activate }); And this is my view: <div id="service-container" data-bind="compose: { model: compositionInfo().model, view: compositionInfo().view, activate: compositionInfo().activate}"> At

inserting dynamic html into durandal views

浪子不回头ぞ 提交于 2020-01-15 10:43:28
问题 I am dynamically inserting html in durandal views but it does'nt work can any one help me out in that? my sample html is in durandal view <div data-bind="foreach:arrayofmodels"> <div data-bind="html:dynamichtml"/> </div> in my model(not view model) which is going to insert dynamic html dynamichtml(<span data-bind="click:Mymodelclickfunction"/>); in my viewmodel var arrayofmodels=ko.observableArray(); vm={ arrayofmodels:arrayofmodels; } return vm; there is a separate function to get list of