Pages
API Documentation
On this page

FormRadioSelectorDelegate QML Type

A FormCard delegate that allows switching between multiple options. More...

Detailed Description

This wraps a RadioSelector.

Example:

FormCard.FormRadioSelectorDelegate {
  consistentWidth: false
  actions: [
      Kirigami.Action {
          text: i18nc("@option:radio", "Week")
          icon.name: "view-calendar-week-symbolic"
      },
      Kirigami.Action {
          text: i18nc("@option:radio", "3 Days")
          icon.name: "view-calendar-upcoming-days-symbolic"
      },
      Kirigami.Action {
          text: i18nc("@option:radio", "1 Day")
          icon.name: "view-calendar-day-symbolic"
      }
  ]
}

Property Documentation

actions : alias

This property holds a list of actions, each holding one of the options.

consistentWidth : bool

This property holds whether all the items should have the same width.

selectedIndex : int

This property holds the currently selected option.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.