fn init_master_detail(&mut self, ctx: &mut Context) {
        if self.master.is_none() && self.detail.is_none() {
            return;
        }

        ctx.clear_children_of(self.content_grid);

        if let Some(master) = self.master {
            ctx.append_child_entity_to(master, self.content_grid);
            ctx.build_context()
                .register_property::<usize>("column", master, 0);
        }

        if let Some(detail) = self.detail {
            ctx.append_child_entity_to(detail, self.content_grid);
            ctx.build_context()
                .register_property::<usize>("column", detail, 0);
            ctx.get_widget(detail)
                .set("visibility", Visibility::Collapsed);
        }
    }
// sets the master and detail widget (entity)
sets the master and detail widget (entity)
sets the master and detail widget ( entity )
fn init_master_detail(&mut self, ctx: &mut Context) {
        if self.master.is_none() && self.detail.is_none() {
            return;
        }
        ctx.clear_children_of(self.content_grid);
        if let Some(master) = self.master {
            ctx.append_child_entity_to(master, self.content_grid);
            ctx.build_context()
                .register_property::<usize>("column", master, 0);
        }
        if let Some(detail) = self.detail {
            ctx.append_child_entity_to(detail, self.content_grid);
            ctx.build_context()
                .register_property::<usize>("column", detail, 0);
            ctx.get_widget(detail)
                .set("visibility", Visibility::Collapsed);
        }
    }
fn init_master_detail ( & mut self , ctx : & mut Context ) { if self . master . is_none ( ) && self . detail . is_none ( ) { return ; } ctx . clear_children_of ( self . content_grid ) ; if let Some ( master ) = self . master { ctx . append_child_entity_to ( master , self . content_grid ) ; ctx . build_context ( ) . register_property :: < usize > ( " " , master , 0 ) ; } if let Some ( detail ) = self . detail { ctx . append_child_entity_to ( detail , self . content_grid ) ; ctx . build_context ( ) . register_property :: < usize > ( " " , detail , 0 ) ; ctx . get_widget ( detail ) . set ( " " , Visibility :: Collapsed ) ; } }
sets the master and detail widget (entity)
sets the master and detail widget ( entity )
&mut self
ctx
&mut Context