Class: Plushie::Widget::Checkbox

Inherits:
Object
  • Object
show all
Includes:
CheckedRemap
Defined in:
lib/plushie/widget/checkbox.rb

Overview

Checkbox widget with boolean toggle state.

Examples:

Checkbox.new("agree", "I agree", true).build

Defined Under Namespace

Modules: CheckedRemap

Instance Method Summary collapse

Instance Method Details

#buildObject Originally defined in module CheckedRemap

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Remap :is_toggled prop to :checked on the wire.