RetryCountInput
Reusable retry count input component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<RetryCountInput
label="RetryCount"
name="name"
value="value"
placeholder="placeholder"
type="text"
/>Legacy mount name: data-component="RetryCountInput".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
label | string | Optional | "RetryCount" |
name | string | Optional | "" |
value | string | Optional | "" |
placeholder | string | Optional | "" |
type | string | Optional | "text" |
required | boolean | Optional | false |
disabled | boolean | Optional | false |
readonly | boolean | Optional | false |
help | string | Optional | "" |
error | string | Optional | "" |
class | string | Optional | "" |
Slots
default
Events
This component does not declare a custom event.
Source contract
Installed source: components/RetryCountInput.wrn
component RetryCountInput {
props {
label = "RetryCount"
name = ""
value = ""
placeholder = ""
type = "text"
required = false
disabled = false
readonly = false
help = ""
error = ""
class = ""
}
view {
<label class="wire-field wire-catalog-field {class}">
<span class="wire-label">{label}<span data-show="required" class="wire-required"> *</span>
</span>
<input name="{name}" value="{value}" placeholder="{placeholder}" type="{type}" required="{required}" disabled="{disabled}" readonly="{readonly}" aria-invalid="{error ? 'true' : 'false'}" class="wire-input" />
<span data-show="help && !error" class="wire-field-message wire-field-message--help">{help}</span>
<span data-show="error" role="alert" class="wire-field-message wire-field-message--error">{error}</span>
<slot />
</label>
}
}