widgets/DefaultControlDesignTimeProvider.php
public function renderControlStaticBody($type, $properties, $controlConfiguration, $formBuilder)
    {
        if (!in_array($type, $this->defaultControlsTypes)) {
            return null;
        }

        $partialName = 'control-static-'.$type;
        $partialPath = $this->getViewPath('_'.$partialName.'.htm');

        if (!File::exists($partialPath)) {
            return null;
        }

        return $this->makePartial($partialName, [
            'properties'=>$properties,
            'controlConfiguration' => $controlConfiguration,
            'formBuilder' => $formBuilder
        ]);
    }
public function renderControlStaticBody($type, $properties, $controlConfiguration, $formBuilder)
    {
        if (!in_array($type, $this->defaultControlsTypes)) {
            return null;
        }

        $partialName = 'control-static-'.$type;
        $partialPath = $this->getViewPath('_'.$partialName.'.htm');

        if (!File::exists($partialPath)) {
            return null;
        }

        return $this->makePartial($partialName, [
            'properties'=>$properties,
            'controlConfiguration' => $controlConfiguration,
            'formBuilder' => $formBuilder
        ]);
    }
public function renderControlStaticBody ( $ type , $ properties , $ controlConfiguration , $ formBuilder ) { if ( ! in_array ( $ type , $ this -> defaultControlsTypes ) ) { return null ; } $ partialName = 'control-static-' . $ type ; $ partialPath = $ this -> getViewPath ( '_' . $ partialName . '.htm' ) ; if ( ! File :: exists ( $ partialPath ) ) { return null ; } return $ this -> makePartial ( $ partialName , [ 'properties' => $ properties , 'controlConfiguration' => $ controlConfiguration , 'formBuilder' => $ formBuilder ] ) ; }
Renders control static body.
The control static body is never updated with AJAX during the form editing.
@param string $type Specifies the control type to render.
@param array $properties Control property values preprocessed for the Inspector.
@param array $controlConfiguration Raw control property values.
@param  \RainLab\Builder\FormWidgets\FormBuilder $formBuilder FormBuilder widget instance.
@return string Returns HTML markup string.
Renders control static body . The control static body is never updated with AJAX during the form editing .