`textVisible` loader option is inadequately named/documented
@johnbender がすでに取り組んでいます。
2013年6月12日 から。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, jquery
調査の方向性
api.jquerymobile.com/page-loading/#option-textVisible の textVisible オプションのドキュメントから始め、この issue の loader 出力例と比較してください。html と textVisible が設定されている場合に、ui-loader-default クラスと ui-loader-verbose クラスがどのように選択されるかを確認してください。この動作を明確に文書化するか、命名/API の変更について合意に達すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Issue description
Reading the documentation, it seems like the textVisible loader option only controls whether the supplied text will be shown:
If true, the text value will be used under the spinner.
However, when using the html option to specify custom HTML for the loader, it turns out that the textVisible option still controls whether the loader is shown as simple circle or as a bigger box (with space for text or other content).
This is not clear from the documentation, so it would help to add information about this. The underlying problem is, however, that the naming for the textVisible option does not make clear that it controls more things than only showing text. It might be better to add another option to control whether the loader is shown as circle or as a box (or rename this option to something more appropriate).
Test code
Specifically look at the latest class name. This class seems to determine whether the loader is just a circle (ui-loader-default) or a bigger box (ui-loader-verbose).
Default loader
Output: circle loader
<div class="ui-loader ui-corner-all ui-body-a ui-loader-default">
<span class="ui-icon ui-icon-loading"></span>
<h1>loading</h1>
</div>
Loader with text
Configuration
$.mobile.loader.prototype.options.text = 'Hi there';
$.mobile.loader.prototype.options.textVisible = true;
Output: box loader
<div class="ui-loader ui-corner-all ui-body-a ui-loader-verbose">
<span class="ui-icon ui-icon-loading"></span>
<h1>Hi there</h1>
</div>
Loader with custom HTML
Configuration
$.mobile.loader.prototype.options.html = 'Hello';
Output: circle loader (why?)
<div class="ui-loader ui-corner-all ui-body-a ui-loader-default">
Hello
</div>
Loader with custom HTML and textVisible option
Configuration
$.mobile.loader.prototype.options.html = 'Hello';
$.mobile.loader.prototype.options.textVisible = true;
Output: box loader (why?)
<div class="ui-loader ui-corner-all ui-body-a ui-loader-verbose">
Hello
</div>
jQuery Mobile and jQuery core version used
- JS Bin test page: jQuery Mobile latest and jQuery 1.9.0.
Other relevant information
Please let me know if test pages are required, in that case I will add them to this issue.
- 主要言語
- HTML
- スター
- 55
- フォーク
- 57
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jquery/api.jquerymobile.com のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
jquery/api.jquerymobile.com#387 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
jquery/api.jquerymobile.com#312 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
jquery/api.jquerymobile.com#253 · コメント 2 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
jquery/api.jquerymobile.com#210 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
jquery/api.jquerymobile.com#430 · コメント 1 件 ·
jquery/api.jquerymobile.com の issue をすべて見る
似ている issue
-
5-minutes algorithm all-levels any-language beginner-friendly community documentation easy first-timers-only good first issue hacktoberfest help wanted learning no-code-needed open-source python students
難易度 2/5 1時間未満 初心者へのやさしさ 88/100
Huerte/algo-solutions-python#253 ·
メンテナーはふだん 1 日以内に返信
-
size/s
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
sipyourdrink-ltd/bernstein#7179 ·
メンテナーはふだん 1 日以内に返信
-
area/docs
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
meshery/meshery#23375 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Synthetic
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
samtoth/agda-synthetic-categories#373 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
tanaabased/big-test-bucket#19952 ·
メンテナーはふだん 1 日以内に返信