Add placeholder BufferSearch
This commit is contained in:
parent
c70f220db3
commit
349ad7858b
3 changed files with 25 additions and 2 deletions
20
crates/ui2/src/components/buffer_search.rs
Normal file
20
crates/ui2/src/components/buffer_search.rs
Normal file
|
@ -0,0 +1,20 @@
|
|||
use crate::prelude::*;
|
||||
use crate::EditorPane;
|
||||
|
||||
#[derive(Element)]
|
||||
#[element(view_state = "EditorPane")]
|
||||
pub struct BufferSearch {}
|
||||
|
||||
impl BufferSearch {
|
||||
pub fn new() -> Self {
|
||||
Self {}
|
||||
}
|
||||
|
||||
fn render(
|
||||
&mut self,
|
||||
_view: &mut EditorPane,
|
||||
cx: &mut ViewContext<EditorPane>,
|
||||
) -> impl Element<ViewState = EditorPane> {
|
||||
div().child("This is where Buffer Search goes.")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue