ค่าพร็อพเพอร์ตี้คุณสมบัติ
ชื่อประเภท: PropertyValueSpecification
ขยายที่จับต้องไม่ได้
ชื่อ |
ประเภท |
คำอธิบาย |
ค่าเริ่มต้น |
ข้อความ หรือ Thing |
ค่าเริ่มต้นของอินพุต สําหรับพร็อพเพอร์ตี้ที่คาดไว้ในรูปตัวอักษร ค่าเริ่มต้นจะเป็นค่าตามจริง สําหรับพร็อพเพอร์ตี้ที่คาดหวังออบเจ็กต์จะเป็นการอ้างอิงรหัสไปยังค่าปัจจุบันค่าใดค่าหนึ่ง |
ค่าสูงสุด |
Number |
ค่าสูงสุดของลักษณะเฉพาะหรือคุณสมบัติบางอย่าง |
ค่าขั้นต่ํา |
Number |
ค่าที่ต่ํากว่าของลักษณะหรือคุณสมบัติบางอย่าง |
หลายค่า |
บูลีน |
ระบุว่าพร็อพเพอร์ตี้มีค่าหลายค่าหรือไม่ ค่าเริ่มต้นคือ "เท็จ" |
ค่าอ่านอย่างเดียว |
บูลีน |
พร็อพเพอร์ตี้มีการเปลี่ยนแปลงหรือไม่ ค่าเริ่มต้นคือ "เท็จ" การระบุค่านี้สําหรับพร็อพเพอร์ตี้ที่มีค่าจะทําให้การดําเนินการคล้ายกับอินพุต "ที่ซ่อน" ในรูปแบบ HTML |
ค่าขั้นตอน |
Number |
แอตทริบิวต์stepValue ระบุรายละเอียดที่คาดหวัง (และจําเป็น) ของค่าใน PropertyValueSpecification |
ค่าความยาวสูงสุด |
Number |
ระบุช่วงที่อนุญาตสําหรับจํานวนอักขระในค่าตามจริง |
ค่าความยาวขั้นต่ํา |
Number |
ระบุช่วงขั้นต่ําที่อนุญาตสําหรับจํานวนอักขระในค่าตามจริง |
ชื่อค่า |
Text |
ระบุชื่อของ PropertyValueSpecification ที่จะใช้ในเทมเพลต URL และการเข้ารหัสแบบฟอร์มในลักษณะคล้ายกับ Input@name ของ HTML |
รูปแบบค่า |
Text |
ระบุนิพจน์ทั่วไปเพื่อทดสอบค่าจริงตามข้อกําหนด HTML |
ค่าที่ต้องการ |
บูลีน |
ต้องกรอกพร็อพเพอร์ตี้เพื่อให้การดําเนินการเสร็จสมบูรณ์หรือไม่ ค่าเริ่มต้นคือ "เท็จ" |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-04 UTC
[null,null,["อัปเดตล่าสุด 2024-09-04 UTC"],[[["`PropertyValueSpecification` extends `Intangible` and describes the metadata of a property's value like default, minimum, and maximum values."],["It specifies constraints on the property value such as allowed data types, length, and whether it's required or read-only."],["This type helps define how property values should be handled and validated within a given context, like a web form or structured data."],["Properties like `multipleValues`, `readonlyValue`, and `valueRequired` provide control over the behavior and presentation of the associated property."],["Developers can use attributes like `valueName` and `valuePattern` to manage URL templates, form encoding, and data validation according to specific requirements."]]],["`PropertyValueSpecification` defines properties for input values. It includes `defaultValue` (text or thing), `maxValue`, and `minValue` (numbers). `multipleValues`, `readonlyValue`, and `valueRequired` are booleans that manage input behavior. `stepValue`, `valueMaxLength`, and `valueMinLength` control numerical and textual granularity and length. The `valueName` identifies the specification and the `valuePattern` tests literal values using a regular expression. The content also specifies the type of each property.\n"]]