Windows 앱
콘텐츠의 테이블 축소
콘텐츠의 테이블 확장
EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

WinJS.Resources.processAll function

Applies to Windows and Windows Phone

Processes data-win-res attributes on elements and replaces attributes and properties with resource strings.

Syntax


WinJS.Resources.processAll(rootElement);

Parameters

rootElement [optional]

Type: HTMLElement

The element to process. The element and its child elements will be processed. If an element isn't specified, the entire document is processed.

Return value

This function does not return a value.

Examples

This example is based on scenario 6 of the Application resources and localization sample. See the sample for the more complete solution.


var output;

var page = WinJS.UI.Pages.define("/html/scenario6.html", {
    ready: function (element, options) {
        output = document.getElementById('output');
        WinJS.Resources.processAll(output); // Refetch string resources
        WinJS.Resources.removeEventListener("contextchanged", refresh, false);
        WinJS.Resources.addEventListener("contextchanged", refresh, false);
    }
});

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Resources

See also

WinJS.Resources
WinJS.UI.processAll
Application resources and localization sample

 

 

표시:
© 2017 Microsoft