WIP: start search2

This commit is contained in:
Piotr Osiewicz 2023-11-13 20:38:37 +01:00
parent 7a454bed22
commit dfd68d4cb8
18 changed files with 5115 additions and 43 deletions

View file

@ -1,6 +1,7 @@
use crate::ItemHandle;
use gpui::{
AnyView, Div, Entity, EntityId, EventEmitter, Render, View, ViewContext, WindowContext,
div, AnyView, Div, Entity, EntityId, EventEmitter, ParentElement, Render, View, ViewContext,
WindowContext,
};
pub enum ToolbarItemEvent {
@ -55,7 +56,8 @@ impl Render for Toolbar {
type Element = Div<Self>;
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
todo!()
//dbg!(&self.items.len());
div().children(self.items.iter().map(|(child, _)| child.to_any()))
}
}