Añade función para crear handler único al compilar
Permite asignar automáticamente el "handler" a componentes, módulos, temas y acciones.
This commit is contained in:
parent
53668b8719
commit
b986bfcd13
33 changed files with 156 additions and 111 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use crate::prelude::*;
|
||||
|
||||
pub const COMPONENT_INPUT: &str = "pagetop::component::form::input";
|
||||
pub_const_handler!(COMPONENT_INPUT);
|
||||
|
||||
pub enum InputType {
|
||||
Email,
|
||||
|
|
@ -57,7 +57,7 @@ impl ComponentTrait for Input {
|
|||
.with_classes(ClassesOp::AddFirst, "form-type-textfield")
|
||||
}
|
||||
|
||||
fn handler(&self) -> &'static str {
|
||||
fn handler(&self) -> Handler {
|
||||
COMPONENT_INPUT
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue