yii2fullcalendar\yii2fullcalendar::init PHP Method

init() public method

If you override this method, make sure you call the parent implementation first.
public init ( )
    public function init()
    {
        //checks for the element id
        if (!isset($this->options['id'])) {
            $this->options['id'] = $this->getId();
        }
        //checks for the class
        if (!isset($this->options['class'])) {
            $this->options['class'] = 'fullcalendar';
        }
        parent::init();
    }

Usage Example

コード例 #1
0
 /**
  * Initializes the widget.
  * If you override this method, make sure you call the parent implementation first.
  */
 public function init()
 {
     //checks for the element id
     if (!isset($this->options['id'])) {
         $this->options['id'] = $this->getId();
     }
     //checks for the element id
     if (!isset($this->options['class'])) {
         $this->options['class'] = 'fullcalendar';
     }
     parent::init();
 }
All Usage Examples Of yii2fullcalendar\yii2fullcalendar::init