Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add docs for symbol option of PercentType#10464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
d42ohpaz wants to merge2 commits intosymfony:masterfromd42ohpaz:feature/percent-type-symbol
Closed
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletionreference/forms/types/percent.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,12 +9,13 @@ percentage data. If your percentage data is stored as a decimal (e.g. ``.95``),
you can use this field out-of-the-box. If you store your data as a number
(e.g. ``95``), you should set the ``type`` option to ``integer``.

Thisfieldadds a percentage sign "``%``" after the input box.
When ``symbol`` is true, thefieldwill add a percentage sign "``%``" after the input box.

+-------------+-----------------------------------------------------------------------+
| Rendered as | ``input`` ``text`` field |
+-------------+-----------------------------------------------------------------------+
| Options | - `scale`_ |
| | - `symbol`_ |
| | - `type`_ |
+-------------+-----------------------------------------------------------------------+
| Overridden | - `compound`_ |
Expand DownExpand Up@@ -50,6 +51,15 @@ scale
By default, the input numbers are rounded. To allow for more decimal places,
use this option.

symbol
~~~~~~

**type**: ``boolean`` **default**: ``true``

By default, fields are rendered with a percentage sign "`%`" after the input
box. Setting this value to ``false`` will disable the percentage sign from
Copy link
Contributor

@OskarStarkOskarStarkOct 10, 2018
edited by javiereguiluz
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

- will disable the percentage sign from being displayed.+ will not show the percentage sign.

what do you think? Much simpler to read/understand

javiereguiluz reacted with thumbs up emoji
being displayed.

type
~~~~

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp