Questions tagged [aurelia-dialog]

A dialog plugin for Aurelia

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

36 questions
8
votes
1 answer

Attach-focus not working in aurelia-dialog

I have the following: New Person
RHarris
  • 10,641
  • 13
  • 59
  • 103
5
votes
1 answer

Unable to inject class with DI

I have a class that uses an instance of DialogService from 'aurelia-dialog` to open almost every dialog in my Aurelia application. In a very abstract way the class looks like this: export class DialogTrigger{ triggerDialogA() {...} …
dimlucas
  • 5,040
  • 7
  • 37
  • 54
5
votes
3 answers

aurelia-dialog error with the release version and CLI

I'm facing a problem when using the new aurelai release : I created a new app using : au new myApp I installed aurelia-dialog via npm When I import aurelia-dialog and try to run the app using au run --watch I get htis error : [Error: ENOENT:…
Wasim
  • 1,915
  • 5
  • 24
  • 39
4
votes
1 answer

Aurelia testing components with

I am trying to test a custom dialog component to be used with aurelia-dialog which gets it's property bindings through an activate() method. In order to test the component, I am setting up the tests with a element which also utilizes the…
4
votes
1 answer

Cannot call function in view model from element

When I click button #btn1 or #btn2 Save, the console says that: Uncaught Error: save is not a function getFunction @ aurelia-binding.js:1971 evaluate @ aurelia-binding.js:1565 callSource @ aurelia-binding.js:4989 (anonymous function)…
drakid
  • 320
  • 4
  • 13
3
votes
2 answers

Determine if opened as dialog in prompt

I am developing an aurelia app. I have a component (which is a full-page component and is navigable) and also in another page, I want to use this component as a prompt to let user choose from that page. So I have written the code below to open it as…
ConductedClever
  • 4,175
  • 2
  • 35
  • 69
3
votes
1 answer

How to load external CSS file for aurelia-dialog plugin?

I'm integrating the aurelia-dialog plugin into an Aurelia CLI project using TypeScript 2+. I want to theme dialogs by replacing the default CSS the plugin uses with my own CSS coming from a SASS file, like this: export function configure(aurelia:…
Sam
  • 6,167
  • 30
  • 39
3
votes
1 answer

How to inject child router to the dialog view-model

In our project we have bunch of custom elements like this:
Pavel Shabalin
  • 231
  • 2
  • 5
3
votes
2 answers

aurelia-dialog modal is incorrect size for body

I've been messing around with aurelia-dialog trying to get a modal dynamically populated with some information. I have some stuff working but the modal is the incorrect size for the data its displaying. welcome.js import {DialogService} from…
TomSelleck
  • 6,706
  • 22
  • 82
  • 151
2
votes
0 answers

Aurelia dialog is shown more than once

When opening a dialog, it is shown more than once Tried to prevent double opening by checking if a dialog is already open if (!this.dialogService.hasOpenDialog) { return this.dialogService .open({ viewModel: AssignTeam }) …
2
votes
0 answers

How to initialize/load aurelia-dialog plugin correctly before running test cases?

I have a service (no view) that depends on DialogService from aurelia-dialog, and uses that for opening a dialog. I want to test my service. While doing that I got the following error on dialogService.open(...). Error: DialogRenderer must implement…
Sayan Pal
  • 4,768
  • 5
  • 43
  • 82
2
votes
0 answers

Re-render Aurelia Dialog

I am trying get Aurelia Dialog to be up in one route tab, but when I switch tabs, it will not be up anymore. Then when I return to the first, it has the dialog still up. I have set the host of my Aurelia Dialog to be inside one of my routes (in a…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
2
votes
1 answer

Aurelia Dialog runs 'then' before dialog returns

I have a view that launches a confirmation dialog but instead of waiting for the dialog to return with a result, the code jumps straight to the 'then' portion of the promise. See code below: ConfirmDialog.ts import { inject } from…
Bitfiddler
  • 3,942
  • 7
  • 36
  • 51
2
votes
1 answer

How do I inject objects from the DI container in Aurelia-dialog

Using Aurelia, you can put stuff in the container and then inject it. The container state is not shared in the dialog. Is there a way to get the data I injected in the container, and use it inside the dialog? Code example home.js fetchString(){ …
Randy
  • 9,419
  • 5
  • 39
  • 56
2
votes
2 answers

Use aurelia-dialog with bootstrap, semantic, or other ui kit

I'm using semantic-ui, which has its own modal functionality built in (see here). Rather than writing all the code to leverage this particular functionality in Aurelia, is there a way to hook into the aurelia-dialog plugin's rendering pipeline so I…
Matthew James Davis
  • 12,134
  • 7
  • 61
  • 90
1
2 3