// collapse the widget (one column layout)
collapse the widget (one column layout)
collapse the widget ( one column layout )
fn collapse(&mut self, ctx: &mut Context) {
        self.expanded = false;
        if let Some(master) = self.master {
            ctx.get_widget(master)
                .set("visibility", Visibility::Visible);
        }
        if let Some(detail) = self.detail {
            ctx.get_widget(detail)
                .set("visibility", Visibility::Collapsed);
            ctx.get_widget(detail).set::<usize>("column", 0);
        }
        Grid::columns_set(
            &mut ctx.get_widget(self.content_grid),
            Blocks::create().push("*").build(),
        );
    }
fn collapse ( & mut self , ctx : & mut Context ) { self . expanded = false ; if let Some ( master ) = self . master { ctx . get_widget ( master ) . set ( " " , Visibility :: Visible ) ; } if let Some ( detail ) = self . detail { ctx . get_widget ( detail ) . set ( " " , Visibility :: Collapsed ) ; ctx . get_widget ( detail ) . set :: < usize > ( " " , 0 ) ; } Grid :: columns_set ( & mut ctx . get_widget ( self . content_grid ) , Blocks :: create ( ) . push ( " " ) . build ( ) , ) ; }
collapse the widget (one column layout)
collapse the widget ( one column layout )
&mut self
<not_specific>
ctx
&mut Context
<not_specific>