public function addPropertyOnDemand($property, $value)
    {
        if ((bool) $value === true) {
            $this->addProperty($property);
        }

        return $this;
    }
public function addPropertyOnDemand($property, $value)
    {
        if ((bool) $value === true) {
            $this->addProperty($property);
        }

        return $this;
    }
public function addPropertyOnDemand ( $ property , $ value ) { if ( ( bool ) $ value === true ) { $ this -> addProperty ( $ property ) ; } return $ this ; }
Adds a property on demand

@param string $property
@param mixed $value
@return \Krystal\Form\NodeElement
Adds a property on demand