Clean up Element API and start on docs
This commit is contained in:
parent
5f2bb82ef3
commit
83923fd6d5
125 changed files with 370 additions and 335 deletions
|
@ -38,7 +38,7 @@ impl ActiveBufferLanguage {
|
|||
}
|
||||
|
||||
impl Render for ActiveBufferLanguage {
|
||||
type Element = Div;
|
||||
type Output = Div;
|
||||
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Div {
|
||||
div().when_some(self.active_language.as_ref(), |el, active_language| {
|
||||
|
|
|
@ -67,9 +67,9 @@ impl LanguageSelector {
|
|||
}
|
||||
|
||||
impl Render for LanguageSelector {
|
||||
type Element = Div;
|
||||
type Output = Div;
|
||||
|
||||
fn render(&mut self, _cx: &mut ViewContext<Self>) -> Self::Element {
|
||||
fn render(&mut self, _cx: &mut ViewContext<Self>) -> Self::Output {
|
||||
v_stack().w(rems(34.)).child(self.picker.clone())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue