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