Comments (7)
- Yes, there is no way to pass custom data.
- I don't understand verify. To verify what? When calling
.ok()
/.cancel()
if the VM implements.canDeactivate
, that hook will be called with aDialogCloseResult
. So you can see what intention it is being closed with, and prevent the closing if needed by returningfalse
. - The keyboard logic is all in the default
Renderer
implementation. And yes someRenderer
options are mixed in the general ones, this has been since day one.
from dialog.
Now that I think about it, both canDeactivate
and deactivate
hooks are called with DialogCloseResult
. So you can manipulate the .output
field - definitelyprobably not intended and feels like a hack but it is doable, since we are not freezing the result object(don't think we'll do it).
from dialog.
Yes this solved my issue. I've added some info to the docs about the canDeactivate result parameter.
Thank you
from dialog.
@pape87 thanks for your help with docs (-:
from dialog.
Oh my!!
and it is referenced in the docs
http://aurelia.io/docs/plugins/dialog#lifecycle-hooks
never knew
from dialog.
@pape87 do you think this satisfies you?
from dialog.
@pape87 take a look at this comment about interfaces available for dialog vm
aurelia/framework#874 (comment)
from dialog.
Related Issues (20)
- Add class reference support for .viewModel HOT 4
- Plugin setting configurations not working HOT 1
- Error when building HOT 1
- AttachFocus is not the default export
- Bug: Lazy loading components causes unnecessary webpack chunks HOT 14
- Dialog does not open when webpack bundle is built in production mode HOT 7
- Remove .rollupcache folder from npm package
- Cannot find name 'AddEventListenerOptions'. HOT 7
- Global callbacks / events every time a dialog opens / closes HOT 8
- Focus management on open / close HOT 5
- Typings fail to install HOT 1
- typings.json does not define dependency versions HOT 2
- DialogCloseError is not exposed in typings HOT 2
- Add whenConfirmed alongside whenClosed HOT 1
- Doesn't load template page in IE11 HOT 12
- null reference error on closing dialog
- Support typing the model with a generic type argument on the open method HOT 2
- dialog forces mulptiple chunks in webpack prod build HOT 1
- 404 on typings install for Aurelia metadata HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dialog.