dsfr4drupal-1.x-dev/components/toggle/toggle.component.yml

components/toggle/toggle.component.yml
name: DSFR - Toggle
description: The "Toogle" component allows the user to make a choice between two opposite states (on/off).
status: stable
group: DSFR
props:
  properties:
    attributes:
      type: Drupal\Core\Template\Attribute
      title: Attributes
    checked:
      type: boolean
      title: Is checked?
    display_current:
      type: boolean
      title: Display current
      default: true
    errors:
      type: array
      title: Errors
      items:
        type: string
    has_border:
      type: boolean
      title: Has border (bottom)?
      default: false
    hint_text:
      type: string
      title: Hint text
    label_attributes:
      type: Drupal\Core\Template\Attribute
      title: Label attributes
    label_checked:
      type: string
      title: Checked label
    label_left:
      type: boolean
      title: Label on the left (DEPRECATED)?
      default: false
    label_unchecked:
      type: string
      title: Unchecked label
    input_id:
      type: string
      title: Input identifier
    input_name:
      type: string
      title: Input name
    input_value:
      type: integer
      title: Input value
    state:
      type: boolean
      title: Display states?
      default: false
    state_checked:
      type: string
      title: State checked label
      description: 'By default: "Enabled", or the translated string in another language.'
    state_unchecked:
      type: string
      title: State unchecked label
      description: 'By default: "Disabled", or the translated string in another language.'
  required:
    - label_checked
libraryOverrides:
  dependencies:
    - dsfr4drupal/component.toggle

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc