\Kendo\UI\ActionSheet
A PHP wrapper for Kendo UI ActionSheet.
Inherits from \Kendo\UI\Widget.
Usage
To use ActionSheet in a PHP page instantiate a new instance, configure it via the available
configuration methods and output it by echo
-ing the result of the render method.
Using Kendo ActionSheet
<?php
// Create a new instance of ActionSheet and specify its id
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
// Configure it
$actionSheet->title('value')
// Output it
echo $actionSheet->render();
?>
Methods
close
Fired when the widget is closed.The event handler function context (available via the this keyword) will be set to the widget instance. For additional information check the close event documentation.
Returns
\Kendo\UI\ActionSheet
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string which defines a JavaScript function
<?php
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
$actionSheet->close('function(e) { }');
?>
Example - using string which defines a JavaScript name
<script>
function onClose(e) {
// handle the close event.
}
</script>
<?php
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
$actionSheet->close('onClose');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
$actionSheet->close(new \Kendo\JavaScriptFunction('function(e) { }'));
?>
addItem
Adds one or more ActionSheetItem to the ActionSheet.
Returns
\Kendo\UI\ActionSheet
Parameters
$value[, $value2, ...] \Kendo\UI\ActionSheetItem|array
Example - using \Kendo\UI\ActionSheetItem
<?php
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
$item = new \Kendo\UI\ActionSheetItem();
$description = 'value';
$item->description($description);
$actionSheet->addItem($item);
?>
Example - using array
<?php
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
$description = 'value';
$actionSheet->addItem(array('description' => $description));
?>
Example - adding more than one ActionSheetItem
<?php
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
$first = new \Kendo\UI\ActionSheetItem();
$second = new \Kendo\UI\ActionSheetItem();
$actionSheet->addItem($first, $second);
?>
open
Fired when the widget is opened.The event handler function context (available via the this keyword) will be set to the widget instance. For additional information check the open event documentation.
Returns
\Kendo\UI\ActionSheet
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string which defines a JavaScript function
<?php
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
$actionSheet->open('function(e) { }');
?>
Example - using string which defines a JavaScript name
<script>
function onOpen(e) {
// handle the open event.
}
</script>
<?php
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
$actionSheet->open('onOpen');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
$actionSheet->open(new \Kendo\JavaScriptFunction('function(e) { }'));
?>
title
Specifies the title of the component
Returns
\Kendo\UI\ActionSheet
Parameters
$value string
Example
<?php
$actionSheet = new \Kendo\UI\ActionSheet('ActionSheet');
$actionSheet->title('value');
?>