Nextras\Forms\Controls\Fragments\TemplateControlTrait::redrawControl PHP Method

redrawControl() public method

Forces control or its snippet to repaint.
public redrawControl ( $snippet = NULL, $redraw = TRUE ) : void
return void
    public function redrawControl($snippet = NULL, $redraw = TRUE)
    {
        if ($redraw) {
            $this->invalidSnippets[$snippet === NULL ? "" : $snippet] = TRUE;
        } elseif ($snippet === NULL) {
            $this->invalidSnippets = [];
        } else {
            $this->invalidSnippets[$snippet] = FALSE;
        }
    }