\Kendo\UI\AIPromptView

A PHP class representing the view setting of AIPromptViews.

Methods

buttonIcon

The icon name of the Toolbar button rendered for the view.

Returns

\Kendo\UI\AIPromptView

Parameters

$value string

Example

<?php
$view = new \Kendo\UI\AIPromptView();
$view->buttonIcon('value');
?>

buttonText

The text of the Toolbar button rendered for the view.

Returns

\Kendo\UI\AIPromptView

Parameters

$value string

Example

<?php
$view = new \Kendo\UI\AIPromptView();
$view->buttonText('value');
?>

footerTemplate

The template of the view footer. It can be a string, a function or a Kendo Template.

Returns

\Kendo\UI\AIPromptView

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$view = new \Kendo\UI\AIPromptView();
$view->footerTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$view = new \Kendo\UI\AIPromptView();
$view->footerTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>

initializeComponents

A function that is executed when the view is rendered. It is used to initialize the components of the view with a custom content template.

Returns

\Kendo\UI\AIPromptView

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$view = new \Kendo\UI\AIPromptView();
$view->initializeComponents(new \Kendo\JavaScriptFunction('function() { }'));
?>

name

The name of the view. It is used to identify the view. It should be unique.

Returns

\Kendo\UI\AIPromptView

Parameters

$value string

Example

<?php
$view = new \Kendo\UI\AIPromptView();
$view->name('value');
?>

addPromptCommand

Adds one or more AIPromptViewPromptCommand to the AIPromptView.

Returns

\Kendo\UI\AIPromptView

Parameters

$value[, $value2, ...] \Kendo\UI\AIPromptViewPromptCommand|array

Example - using \Kendo\UI\AIPromptViewPromptCommand

<?php
$view = new \Kendo\UI\AIPromptView();
$promptCommand = new \Kendo\UI\AIPromptViewPromptCommand();
$icon = 'value';
$promptCommand->icon($icon);
$view->addPromptCommand($promptCommand);
?>

Example - using array

<?php
$view = new \Kendo\UI\AIPromptView();
$icon = 'value';
$view->addPromptCommand(array('icon' => $icon));
?>

Example - adding more than one AIPromptViewPromptCommand

<?php
$view = new \Kendo\UI\AIPromptView();
$first  = new \Kendo\UI\AIPromptViewPromptCommand();
$second = new \Kendo\UI\AIPromptViewPromptCommand();
$view->addPromptCommand($first, $second);
?>

type

Defines the type of the view.

Returns

\Kendo\UI\AIPromptView

Parameters

$value string

Example

<?php
$view = new \Kendo\UI\AIPromptView();
$view->type('value');
?>

viewTemplate

The template of the view content. It can be a string, a function or a Kendo Template.

Returns

\Kendo\UI\AIPromptView

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$view = new \Kendo\UI\AIPromptView();
$view->viewTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$view = new \Kendo\UI\AIPromptView();
$view->viewTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>
In this article
Not finding the help you need?