Questions tagged [aurelia-dialog]

A dialog plugin for Aurelia

Source of the project can be found @ https://github.com/aurelia/dialog

36 questions
2
votes
1 answer

How to include aurelia-dialog into bundle with Aurelia?

I use aurelia-dialog in my web application and everything works fine. But when I export (glup export) this application, I have this error when loading: Error: XHR error (404 Not Found) loading…
Seb
  • 1,118
  • 1
  • 11
  • 25
1
vote
0 answers

Aurelia Dialog not working when creating a custom aurelia plugin

I can’t get the aurelia dialog plugin to work properly in my custom aurelia plugin. The idea is to use my custom aurelia plugin for common modals that I can re-use for different aurelia projects. I have setup a mininmal plugin project that gives me…
Tom Aalbers
  • 4,574
  • 5
  • 29
  • 51
1
vote
0 answers

Which is the best approach to write a reusable component / customElement in aurelia?

I need to create multiple tables of same html structure but data and columns are different for each table. So I want to create one table component which has common html structure and can get columns and data as parameter , I'm not sure which is the…
RS17
  • 773
  • 1
  • 9
  • 23
1
vote
1 answer

Aurelia modal dialog - is there a way to make the parent window fade?

Hopefully the title makes this fairly self-explanatory. Just a bit of background, I create and launch an aurelia modal dialog which appears on top of the parent window from where it is launched. Is there a way to make the background (parent) window…
AndyUK
  • 3,933
  • 7
  • 42
  • 44
1
vote
1 answer

How to explicitly include resources of aurelia-dialog@2.0.0-rc.3 with SystemJS+TS?

Considering changes described here Aurelia Dialog breaking changes we are trying to export our established project based on JSPM and TypeScript so it can be started without this error: system.src.js:1612 Uncaught (in promise) TypeError: t.substr is…
1
vote
1 answer

Set the parent of an Aurelia Dialog

Aurelia Dialog puts all the UI elements for itself at the root of the document (or very near). Is there a way to configure where the dialog places itself in the document? (I am trying to make the dialog be part of my router page rather than part of…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
1
vote
1 answer

How to mock DialogService.open(...).whenClosed(...) with Jasmine?

We have some TypeScript code using the Aurelia framework and Dialog plugin that we are trying to test with Jasmine, but can't work out how to do properly. This is the source function: openDialog(action: string) { this._dialogService.open({…
Sam
  • 6,167
  • 30
  • 39
1
vote
1 answer

Generic Aurelia dialog needs Save enabled when dirty and valid

I'm trying to make a generic, reusable dialog that we can use for basic data entry on simple objects -- phone, email, etc. In general, I have a helper class that opens the dialog, a generic dialog using aurelia-dialog, and then a vm that gets…
RHarris
  • 10,641
  • 13
  • 59
  • 103
1
vote
1 answer

aurelia-dialog TypeError: _aureliaPal.DOM.injectStyles is not a function

I've simply installed the aurelia-dialog plugin, version 1.0.0-beta.1.1.0, and registered it with aurelia, but I'm getting an error: aurelia.use .plugin('aurelia-dialog'); dialog-configuration.js:65 Uncaught (in promise) TypeError:…
Matthew James Davis
  • 12,134
  • 7
  • 61
  • 90
1
vote
2 answers

How do you unit test that methods such as ok() were called in aurelia-dialog using jasmine?

How do I go about unit testing a method that calls the DialogController? I want to test that this.controller.ok() was called. ReprocessLotDialog.js @inject(DialogController) export class ReprocessLotDialog { constructor(dialogController) { …
Jeremy Holt
  • 987
  • 1
  • 9
  • 14
0
votes
1 answer

Aurelia-dialog BindingLanguage must implement inspectTextContent()

I installed aurelia-dialog npm install aurelia-dialog --save. Which installed the version "version": "2.0.0-rc.3". I modified main.ts by adding .plugin(PLATFORM.moduleName('aurelia-dialog')) ; to aurelia.use in configure function. I…
Lbro
  • 309
  • 2
  • 16
0
votes
1 answer

How to change border colour in Aurelia Dialog?

I have a dialog as you can see here: