Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tmyt/node-adaptive-toast
windows 10 uwp adaptive toast xml wrapper for js.
https://github.com/tmyt/node-adaptive-toast
Last synced: about 2 months ago
JSON representation
windows 10 uwp adaptive toast xml wrapper for js.
- Host: GitHub
- URL: https://github.com/tmyt/node-adaptive-toast
- Owner: tmyt
- Created: 2015-12-29T18:47:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-29T20:21:26.000Z (about 9 years ago)
- Last Synced: 2024-10-12T14:12:05.729Z (3 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Adaptive Toast
windows 10 adaptive toast xml schema wrapper.
## usage
```javascript
var AdaptiveToast = require('adaptive-toast');
var builder = new AdaptiveToast();builder
.addText('foo')
.addText('bar');console.log(builder.build());
```## apis
### addText(value)
add text element.
### addImage(src, placement, alt, addImageQuery, hintCrop)
add image element.
### addAudio(src, loop, silent)
add audio element.
### addButton(content, arguments, activationType, imageUri, hintInputId)
add action element.
### addInput(id, title, placeHolderContent, defaultInput)
add text input element.
### addSelection(id, selections, title, defaultInput)
add selection input element.
#### note
selection requires array of object. the object needs ``id`` and ``content`` property.
### appLogoOverride(src)
wrapper function of ``addImage(src, 'appLogoOverride')``.
### build()
build xml for current content.
## properties
### applies to toast element
- launch
- duration
- activationType
- scenario### applies to visual element
- lang
- baseUri
- addImageQuery## links
- http://blogs.msdn.com/b/tiles_and_toasts/archive/2015/07/02/adaptive-and-interactive-toast-notifications-for-windows-10.aspx