Skip to content
W WRNexusJS
forms component

RecurringSchedulePicker

Reusable recurring schedule picker component.

@wrnexus/ui 0.2.676 props0 slots0 events

Usage

Components are auto-discovered. Use the component directly in any .wrn view:

<RecurringSchedulePicker
  id="recurring-schedule"
  name="recurrence"
  label="Repeat"
  value="none"
  disabled="false"
/>

Legacy mount name: data-component="RecurringSchedulePicker".

Props and attributes

PropTypeRequirementDefault
idstringOptional"recurring-schedule"
namestringOptional"recurrence"
labelstringOptional"Repeat"
valuestringOptional"none"
disabledbooleanOptionalfalse
classstringOptional""

Slots

This component does not declare a slot.

Events

This component does not declare a custom event.

Source contract

Installed source: components/RecurringSchedulePicker.wrn

component RecurringSchedulePicker {
  props {
    id = "recurring-schedule"
    name = "recurrence"
    label = "Repeat"
    value = "none"
    disabled = false
    class = ""
  }
  view {
        <div class="wire-field {class}">
        <label for="{id}" class="wire-label">{label}</label>
        <select id="{id}" name="{name}" disabled="{disabled}" class="wire-input">
        <option value="none" selected="{value === 'none'}">Does not repeat</option>
        <option value="daily" selected="{value === 'daily'}">Daily</option>
        <option value="weekly" selected="{value === 'weekly'}">Weekly</option>
        <option value="monthly" selected="{value === 'monthly'}">Monthly</option>
        <option value="yearly" selected="{value === 'yearly'}">Yearly</option>
        </select>
        </div>
    }
}