fn dispatch_config(&self, ctx: &Context<Self>) {
        let config = match &self.config {
            NumberColumnStyleConfig {
                pos_color: Some(pos_color),
                neg_color: Some(neg_color),
                ..
            } if *pos_color == ctx.props().default_config.pos_color
                && *neg_color == ctx.props().default_config.neg_color =>
            {
                NumberColumnStyleConfig {
                    pos_color: None,
                    neg_color: None,
                    ..self.config
                }
            }
            x => x.clone(),
        };

        ctx.props().on_change.emit(config);
    }
/// When this config has changed, we must signal the wrapper element.
When this config has changed, we must signal the wrapper element.
When this config has changed we must signal the wrapper element .
fn dispatch_config(&self, ctx: &Context<Self>) {
        let config = match &self.config {
            NumberColumnStyleConfig {
                pos_color: Some(pos_color),
                neg_color: Some(neg_color),
                ..
            } if *pos_color == ctx.props().default_config.pos_color
                && *neg_color == ctx.props().default_config.neg_color =>
            {
                NumberColumnStyleConfig {
                    pos_color: None,
                    neg_color: None,
                    ..self.config
                }
            }
            x => x.clone(),
        };
        ctx.props().on_change.emit(config);
    }
fn dispatch_config ( & self , ctx : & Context < Self > ) { let config = match & self . config { NumberColumnStyleConfig { pos_color : Some ( pos_color ) , neg_color : Some ( neg_color ) , .. } if * pos_color == ctx . props ( ) . default_config . pos_color && * neg_color == ctx . props ( ) . default_config . neg_color => { NumberColumnStyleConfig { pos_color : None , neg_color : None , .. self . config } } x => x . clone ( ) , } ; ctx . props ( ) . on_change . emit ( config ) ; }
When this config has changed, we must signal the wrapper element.
When this config has changed we must signal the wrapper element .
&self
ctx
&Context<Self>
&self
ctx
&Context<Self>