✨ (bootsier): Añade componentes para formularios
This commit is contained in:
parent
b39ed38d0d
commit
bfaf2e569f
9 changed files with 901 additions and 4 deletions
|
|
@ -25,6 +25,13 @@ impl<T> Attr<T> {
|
|||
|
||||
// **< Attr<T> BUILDER >************************************************************************
|
||||
|
||||
/// Establece un valor opcional para el atributo.
|
||||
#[builder_fn]
|
||||
pub fn with_opt(mut self, opt: Option<T>) -> Self {
|
||||
self.0 = opt;
|
||||
self
|
||||
}
|
||||
|
||||
/// Establece un valor para el atributo.
|
||||
#[builder_fn]
|
||||
pub fn with_value(mut self, value: T) -> Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue