Class: Oversee::Field::Value::Boolean
- Inherits:
-
Oversee::Field::Value
- Object
- Phlex::HTML
- Base
- Oversee::Field::Value
- Oversee::Field::Value::Boolean
- Defined in:
- app/components/oversee/field/value/boolean.rb
Constant Summary
Constants inherited from Oversee::Field::Value
Instance Attribute Summary
Attributes inherited from Oversee::Field::Value
Instance Method Summary collapse
Methods inherited from Oversee::Field::Value
Constructor Details
This class inherits a constructor from Oversee::Field::Value
Instance Method Details
#view_template ⇒ Object
2 3 4 |
# File 'app/components/oversee/field/value/boolean.rb', line 2 def view_template render value ? Phlex::Icons::Iconoir::Check.new(class: "size-4 text-emerald-500") : Phlex::Icons::Iconoir::Xmark.new(class: "size-4 text-rose-500") end |