-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhancement: Divider
component
#792
Comments
this is my divider component #[derive(Clone, PartialEq)]
pub enum Direction {
VERTICAL,
HORIZONTAL,
}
#[component]
pub fn Divider(background: String, direction: Direction) -> Element {
match direction {
Direction::VERTICAL => rsx!(
rect {
width: "1",
height: "100%",
background: background,
}
),
Direction::HORIZONTAL => rsx!(
rect {
width: "100%",
height: "1",
background: background,
}
)
}
} |
ones you can grab with a mouse and move are usually called ones that just divide, without being able to be grabbed and resized are just also, the bit that you actually grab, is often called the splitter's |
I do actually have this on a drafted PR https://github.com/marc2332/freya/pull/752/files#diff-ebe5a18828ca45a7ec7caf8e5b9fb78340d8d1122ba13d44090fa22d4bcd8ed2 |
No description provided.
The text was updated successfully, but these errors were encountered: