diff --git a/src/base/component/table/cell.rs b/src/base/component/table/cell.rs index 0f49a826..39cd9aa7 100644 --- a/src/base/component/table/cell.rs +++ b/src/base/component/table/cell.rs @@ -112,3 +112,10 @@ impl From for Cell { Cell::new(label) } } + +impl From for Cell { + /// Convierte cualquier componente en una celda; equivale a `Cell::new(component)`. + fn from(component: C) -> Self { + Cell::new(component) + } +}