機械翻訳について

getDirection()

パラメータ:

なし

使用状況:

// when the editor wants to handle and support
// directionality
let dir = sdk.getDirection();
if(dir){   
document.querySelector("html").setAttribute("dir", dir);
}

戻り値:

ユーザー・インタフェースの現在の方向。