Skip to content

h5.ui.indicator()を、オブジェクトを第1引数に渡せるようにする #348

@fukudayasuo

Description

@fukudayasuo

h5.ui.indicatorは、第1引数にtarget、第2引数にoptionオブジェクトを取る。

これを、第1引数にオブジェクトを指定できるようにし、optionの中でtargetを指定できるようにする。

また、今まで通りの(target, option)のような渡し方も対応する。

// 今までの呼び出し方。この呼び出し方も今まで通り対応する。
h5.ui.indicator(document.body, {
  message: 'loading...'
});

// 以下の指定方法にも対応する
h5.ui.indicator({
  target: document.body,
  message: 'loading...'
});

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions