1.0.1 • Published 8 years ago

adaptive-toast v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Adaptive Toast

windows 10 adaptive toast xml schema wrapper.

usage

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

1.0.1

8 years ago

1.0.0

8 years ago