SolidOS / SolidOS/solid-ui

'requiredError' Common Field Property

オープン
#138 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

@timbl がすでに取り組んでいます。

2019年12月16日 から。

enhancement
主要言語
TypeScript
スター
153
フォーク
46
平均マージ
1日 8時間
マージ済み PR(30日)
7

説明

User Story

As a Form Designer, I can define the error to be displayed if a user fails to enter a required field, so the fact that the field is required is clear to the user.

Acceptance Criteria

  1. In a Form Model, the 'requiredError' property can be optionally defined for a data field, that defines the error message that should be displayed is the user fails to enter a value.
  2. When the form is rendered, if the data field is required #130 and the user fails to enter a value:
    a. If the 'requiredError' property is defined, the custom required error message is displayed.
    b. If the 'requiredError' property is not defined, a generic required error message is displayed.

Dev Notes

  • requiredError defined as a thing allowing the error messages in multiple languages to be defined:
    ui:requiredError [ rdfs:label "Social Security Number (SSN) is required"@en ] ;

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。