Constructor
new RetentionPolicyInputController()
Methods
connect()
Initialize controller
formatPreviewText(anchor, years, months, days) → {string}
Format preview text in human-readable format
Parameters:
| Name | Type | Description |
|---|---|---|
anchor | string | The anchor point |
years | number | Years duration |
months | number | Months duration |
days | number | Days duration |
Returns:
Formatted preview text
- Type:
- string
parseJson(jsonValue)
Parse existing JSON value into form fields Called when editing an existing waiver type
Parameters:
| Name | Type | Description |
|---|---|---|
jsonValue | string | JSON string from database |
updatePreview()
Update preview text and hidden JSON field Called whenever any input changes
validate() → {boolean}
Validate inputs before form submission
Returns:
True if valid, false otherwise
- Type:
- boolean