🚚 Rename grid handles

This commit is contained in:
Manuel Cillero 2023-08-11 10:44:08 +02:00
parent 5f02ef7f2c
commit 8934330523
4 changed files with 9 additions and 9 deletions

View file

@ -87,7 +87,7 @@ impl ThemeTrait for Bulmix {
},
);
}
grid::COMPONENT_COLUMN => {
grid::COMPONENT_GRID_COLUMN => {
let col = component_mut::<grid::Column>(component);
col.alter_classes(
ClassesOp::SetDefault,
@ -113,7 +113,7 @@ impl ThemeTrait for Bulmix {
.as_str(),
);
}
grid::COMPONENT_ROW => {
grid::COMPONENT_GRID_ROW => {
let row = component_mut::<grid::Row>(component);
row.alter_classes(ClassesOp::SetDefault, "columns");
}

View file

@ -1,4 +1,4 @@
mod row;
pub use row::{Row, COMPONENT_ROW};
pub use row::{Row, COMPONENT_GRID_ROW};
mod column;
pub use column::{Column, ColumnSize, COMPONENT_COLUMN};
pub use column::{Column, ColumnSize, COMPONENT_GRID_COLUMN};

View file

@ -1,10 +1,10 @@
use pagetop::prelude::*;
new_handle!(COMPONENT_COLUMN);
new_handle!(COMPONENT_GRID_COLUMN);
actions_for_component!(Column);
const SIZE_DEFAULT: &str = "col-md";
const SIZE_DEFAULT: &str = "col";
const SIZE_1_OF_12: &str = "col-md-1";
const SIZE_2_OF_12: &str = "col-md-2";
const SIZE_3_OF_12: &str = "col-md-3";
@ -54,7 +54,7 @@ impl ComponentTrait for Column {
}
fn handle(&self) -> Handle {
COMPONENT_COLUMN
COMPONENT_GRID_COLUMN
}
fn id(&self) -> Option<String> {

View file

@ -2,7 +2,7 @@ use pagetop::prelude::*;
use crate::component::grid;
new_handle!(COMPONENT_ROW);
new_handle!(COMPONENT_GRID_ROW);
actions_for_component!(Row);
@ -23,7 +23,7 @@ impl ComponentTrait for Row {
}
fn handle(&self) -> Handle {
COMPONENT_ROW
COMPONENT_GRID_ROW
}
fn id(&self) -> Option<String> {