Interface ISkyDrivePickerProperies

'Properties' object passed into the WL.ui method when 'name' is set to 'skydrivepicker'.

Hierarchy

Index

Properties

Properties

public element: string

The value of the id attribute of the

tag to display the button in.

optional public lightbox?: string

Defines the color pallette used for the file picker dialog box. Valid values are "white", "gray", and "transparent".

default

"white"

public mode: string

The type of SkyDrive file picker button to display. Specify "save" to display the upload button. Specify "open" to display the download button.

public name: string

Specifies the type of button to display. Specify "signin" to display the Live Connect sign-in button. Specify "skydrivepicker" to display the SkyDrive button.

optional public onerror?: Function

Specifies the function to call if the selected files cannot be successfully uploaded or downloaded.

optional public onselected?: Function

If the mode property is set to "save", specifies the function to call after the user clicks either Save or Cancel in the file picker. If the mode property is set to "open", specifies the function to call after the user clicks either Open or Cancel in the file picker.

optional public select?: string

Required if the mode property is set to "open". Specifies how many files the user can select to download. Specify "single" for a single file. Specify "multi" for multiple files.

default

"single"

optional public state?: string

Windows Store apps using JavaScript: not applicable. Web apps: Optional. If the name property is set to "signin", the WL.init function's response_type property is set to "code", and the app uses server-flow authentication, the state object here can be used to track the web app's calling state on the web app server side. For more info, see the description of the state query parameter in the Server-side scenarios topic's "Getting an authorization code" section. http://msdn.microsoft.com/en-us/library/live/hh243649.aspx

optional public theme?: string

Defines the color pallette used for the file picker button. Valid values are "white" and "blue".

default

"white"