src/jsModal.php
public function setOption($options, $value = null)
    {
        if (is_array($options)) {
            foreach ($options as $key => $value) {
                $this->args['arg'][$key] = $value;
            }
        } else {
            $this->args['arg'][$options] = $value;
        }

        return $this;
    }
public function setOption($options, $value = null)
    {
        if (is_array($options)) {
            foreach ($options as $key => $value) {
                $this->args['arg'][$key] = $value;
            }
        } else {
            $this->args['arg'][$options] = $value;
        }

        return $this;
    }
public function setOption ( $ options , $ value = null ) { if ( is_array ( $ options ) ) { foreach ( $ options as $ key => $ value ) { $ this -> args [ 'arg' ] [ $ key ] = $ value ; } } else { $ this -> args [ 'arg' ] [ $ options ] = $ value ; } return $ this ; }
Set additionnal option for this jsModal.

Valuable option are headerCss and label:
'headerCss' -> customize css class name for the header.
ex: changing color text for header
$jsModal->setOption('headerCss', 'ui blue header');

'label' -> set the text loader value.
ex: changing default 'Loading...' for no text
$jsModal->setOption('label', '');

You can set option individually or supply an array.

@param $options
@param null $value

@return $this
Set additionnal option for this jsModal .