Gets or defines the fade property.

@param bool $fade True to set fade animation in and out, false otherwise.

@return mixed The fade property, or $this.
433033
public function fade($fade = null)
    {
        // Return value
        if (is_null($fade)) {
            return $this->fade;
        }

        // Set value
        $this->fade = $fade;

        return $this;
    }
745732
public function setStyle($cssStyle) {
		if (is_int($cssStyle)) {
			return $this->addToMember($this->class, CssRef::buttonStyles()[$cssStyle]);
		}
		if (JString::startsWith($cssStyle, "btn-")===false) {
			$cssStyle="btn".$cssStyle;
		}
		return $this->addToMemberCtrl($this->class, $cssStyle, CssRef::buttonStyles());
	}
277359
public function getStream(bool $rewind = true)
	{
		if ($rewind)
			rewind($this->stream);

		return $this->stream;
	}
812049
private function setShadowBlur($blur)
    {
        if ($blur !== null) {
            $this->shadowProperties['blur'] = (string) $this->getExcelPointsWidth($blur);
        }

        return $this;
    }
208529
public function &__get($property)
    {
        $get[ $property ] = false;

        if (property_exists($this, $property)) {
            return $this->{$property};
        }

        return $get[ $property ];
    }
555832
function(el){
		if(!el)
			el = this.$el.last();
		else
			el = $(el);

		el.fadeOut(el.remove);
	}
516078
function() {
        if (this.options.animation === 'fade') {
            return;
        }

        var dimension = this._dimension, // height or width
            containerSize = 0,
            sizes = [];

        this.container.removeAttr('style');

        this.items.each(function() {
            var item = $(this).removeAttr('style'),
                size = item[dimension](),
                marginStart = parseInt(item.css('margin-' + (dimension === 'width' ? 'left' : 'top')), 10),
                marginEnd = parseInt(item.css('margin-' + (dimension === 'width' ? 'right' : 'bottom')), 10),
                totalSize = size + marginStart + marginEnd;

            containerSize += totalSize;

            sizes.push({
                size: size,
                totalSize: totalSize,
                marginStart: marginStart,
                marginEnd: marginEnd,
                clone: item.hasClass('is-cloned')
            });

            // Set the size of the item explicitly
            item.css(dimension, size);
        });

        // Store the sizes
        this._sizes = sizes;

        // Set the container width/height
        this.container.css(dimension, containerSize);
    }
971249
public function getProperties($public = true)
	{
		$vars = get_object_vars($this);

		if ($public)
		{
			foreach ($vars as $key => $value)
			{
				if ('_' == substr($key, 0, 1))
				{
					unset($vars[$key]);
				}
			}
		}

		return $vars;
	}
292601
public function __isset($property)
    {
        if (method_exists($this, $getter = 'get' . $property)) {
            return $this->$getter() !== null;
        } else {
            return false;
        }
    }
715165
public function export($return = false)
    {
        if ($return) {
            return var_export($this->elements, true);
        }

        var_export($this->elements, false);

        return $this;
    }
1211107
public function disableViewCheck(bool $disable = true)
    {
        $this->builder()->getFooter()->disableViewCheck($disable);

        return $this;
    }
1063171
public function getTransitionColor($transition)
    {
        return empty($this->colors['transition'][$transition])
            ? $this->options['transition']['default_color']
            : $this->colors['transition'][$transition]
        ;
    }
1331401
public static function session($key = false) {

        if (isset($_SESSION)) {

            if ($key) {

                return $_SESSION[$key];
            }

            return $_SESSION;
        }

        return false;
    }
566114
public function setStyle($style)
    {
        if (!is_string($style)) {
            $style = json_encode($style);
        }
        $this->entity->setStyle($style);

        return $this;
    }
15457
public function backgroundDark($gradient = false)
    {
        $this->textLight();
        $this->attributes->addAttributeClass('bg-' . ($gradient === true ? 'gradient-' : '') . 'dark');

        return $this;
    }
509985
public function saveRenderedReason(bool $save = true)
    {
        $raw = $this->getAttributeFromArray('reason');

        if (($rendered = markdown($raw)) === $this->getAttributeFromArray('reason_rendered')) {
            return null;
        }

        $this->setAttribute('reason_rendered', $rendered);

        if ($save) {
            $this->save();
        }

        $this->renderedReason = $rendered;

        return $this;
    }
1168124
public function backgroundLight($gradient = false)
    {
        $this->textDark();
        $this->attributes->addAttributeClass('bg-' . ($gradient === true ? 'gradient-' : '') . 'light');

        return $this;
    }