PHP Class yii2fullcalendar\yii2fullcalendar

Inheritance: extends yii\base\Widget
显示文件 Open project: philippfrenzel/yii2fullcalendar Class Usage Examples

Public Properties

Property Type Description
$ajaxEvents Will hold an url to json formatted events!
$clientOptions clientOptions the HTML attributes for the widget container tag.
$defaultView defaultView will define which view renderer will initially be used for displaying calendar events
$eventAfterAllRender The javascript function to us as en eventAfterAllRender callback
$eventAfterRender The javascript function to us as en eventAfterRender callback
$eventClick A js callback that triggered when the user clicks an event.
$eventDrop The javascript function to us as en eventDrop callback
$eventRender The javascript function to us as en eventRender callback
$events Holds an array of Event Objects
$googleCalendar boolean tell the calendar, if you like to render google calendar events within the view
$header Define the look n feel for the calendar header, known placeholders are left, center, right
$loading string the text that will be displayed on changing the pages
$options options the HTML attributes (name-value pairs) for the field container tag. The values will be HTML-encoded using [[Html::encode()]]. If a value is null, the corresponding attribute will not be rendered.
$select A js callback that will fire after a selection is made.
$theme boolean default is true and will render the jui theme for the calendar

Public Methods

Method Description
init ( ) Initializes the widget.
run ( ) Renders the widget.

Protected Methods

Method Description
getClientOptions ( ) : array
registerPlugin ( ) Registers the FullCalendar javascript assets and builds the requiered js for the widget and the related events

Method Details

getClientOptions() protected method

protected getClientOptions ( ) : array
return array the options for the text field

init() public method

If you override this method, make sure you call the parent implementation first.
public init ( )

registerPlugin() protected method

Registers the FullCalendar javascript assets and builds the requiered js for the widget and the related events
protected registerPlugin ( )

run() public method

Renders the widget.
public run ( )

Property Details

$ajaxEvents public_oe property

Will hold an url to json formatted events!
public $ajaxEvents

$clientOptions public_oe property

clientOptions the HTML attributes for the widget container tag.
public $clientOptions

$defaultView public_oe property

defaultView will define which view renderer will initially be used for displaying calendar events
public $defaultView

$eventAfterAllRender public_oe property

The javascript function to us as en eventAfterAllRender callback
public $eventAfterAllRender

$eventAfterRender public_oe property

The javascript function to us as en eventAfterRender callback
public $eventAfterRender

$eventClick public_oe property

A js callback that triggered when the user clicks an event.
public $eventClick

$eventDrop public_oe property

The javascript function to us as en eventDrop callback
public $eventDrop

$eventRender public_oe property

The javascript function to us as en eventRender callback
public $eventRender

$events public_oe property

Holds an array of Event Objects
public $events

$googleCalendar public_oe property

tell the calendar, if you like to render google calendar events within the view
public bool $googleCalendar
return boolean

$header public_oe property

Define the look n feel for the calendar header, known placeholders are left, center, right
public $header

$loading public_oe property

the text that will be displayed on changing the pages
public string $loading
return string

$options public_oe property

options the HTML attributes (name-value pairs) for the field container tag. The values will be HTML-encoded using [[Html::encode()]]. If a value is null, the corresponding attribute will not be rendered.
public $options

$select public_oe property

A js callback that will fire after a selection is made.
public $select

$theme public_oe property

default is true and will render the jui theme for the calendar
public bool $theme
return boolean