🚚 Rename grid handles
This commit is contained in:
parent
5f02ef7f2c
commit
8934330523
4 changed files with 9 additions and 9 deletions
|
|
@ -87,7 +87,7 @@ impl ThemeTrait for Bulmix {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
grid::COMPONENT_COLUMN => {
|
grid::COMPONENT_GRID_COLUMN => {
|
||||||
let col = component_mut::<grid::Column>(component);
|
let col = component_mut::<grid::Column>(component);
|
||||||
col.alter_classes(
|
col.alter_classes(
|
||||||
ClassesOp::SetDefault,
|
ClassesOp::SetDefault,
|
||||||
|
|
@ -113,7 +113,7 @@ impl ThemeTrait for Bulmix {
|
||||||
.as_str(),
|
.as_str(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
grid::COMPONENT_ROW => {
|
grid::COMPONENT_GRID_ROW => {
|
||||||
let row = component_mut::<grid::Row>(component);
|
let row = component_mut::<grid::Row>(component);
|
||||||
row.alter_classes(ClassesOp::SetDefault, "columns");
|
row.alter_classes(ClassesOp::SetDefault, "columns");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
mod row;
|
mod row;
|
||||||
pub use row::{Row, COMPONENT_ROW};
|
pub use row::{Row, COMPONENT_GRID_ROW};
|
||||||
mod column;
|
mod column;
|
||||||
pub use column::{Column, ColumnSize, COMPONENT_COLUMN};
|
pub use column::{Column, ColumnSize, COMPONENT_GRID_COLUMN};
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
use pagetop::prelude::*;
|
use pagetop::prelude::*;
|
||||||
|
|
||||||
new_handle!(COMPONENT_COLUMN);
|
new_handle!(COMPONENT_GRID_COLUMN);
|
||||||
|
|
||||||
actions_for_component!(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_1_OF_12: &str = "col-md-1";
|
||||||
const SIZE_2_OF_12: &str = "col-md-2";
|
const SIZE_2_OF_12: &str = "col-md-2";
|
||||||
const SIZE_3_OF_12: &str = "col-md-3";
|
const SIZE_3_OF_12: &str = "col-md-3";
|
||||||
|
|
@ -54,7 +54,7 @@ impl ComponentTrait for Column {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn handle(&self) -> Handle {
|
fn handle(&self) -> Handle {
|
||||||
COMPONENT_COLUMN
|
COMPONENT_GRID_COLUMN
|
||||||
}
|
}
|
||||||
|
|
||||||
fn id(&self) -> Option<String> {
|
fn id(&self) -> Option<String> {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ use pagetop::prelude::*;
|
||||||
|
|
||||||
use crate::component::grid;
|
use crate::component::grid;
|
||||||
|
|
||||||
new_handle!(COMPONENT_ROW);
|
new_handle!(COMPONENT_GRID_ROW);
|
||||||
|
|
||||||
actions_for_component!(Row);
|
actions_for_component!(Row);
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ impl ComponentTrait for Row {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn handle(&self) -> Handle {
|
fn handle(&self) -> Handle {
|
||||||
COMPONENT_ROW
|
COMPONENT_GRID_ROW
|
||||||
}
|
}
|
||||||
|
|
||||||
fn id(&self) -> Option<String> {
|
fn id(&self) -> Option<String> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue