PHP Класс Prado\Web\UI\WebControls\THead
THead displays a head element on a page. It displays the content
enclosed in its body and the page title set by the
{@link setTitle Title} property. In addition, stylesheets and JavaScripts registered via
{@link TClientScriptManager::registerStyleSheet}, {@link TClientScriptManager::registerStyleSheetFile}
{@link TClientScriptManager::registerHeadJavaScript}, and
{@link TClientScriptManager::registerHeadJavaScriptFile} will also be displayed
in the head.
THead also manages and displays meta tags through its {@link getMetaTags MetaTags}
property. You can add a meta object to the collection in code dynamically,
or add it in template using the following syntax,
Note, {@link TPage} has a property {@link TPage::getHead Head} that refers to
the THead control currently on the page. A page can have at most one THead
control. Although not required, it is recommended to place a THead on your page.
Without a THead on the page, stylesheets and javascripts in the current page
theme will not be rendered.
Показать файл
Открыть проект
Открытые методы
Описание методов
addParsedObject()
публичный Метод
This method adds TMetaTag components into the {@link getMetaTags MetaTags}
collection of the head control.
getBaseUrl()
публичный Метод
public getBaseUrl ( ) : string |
Результат |
string |
base URL of the page. This URL is rendered as the 'href' attribute of tag. Defaults to ''. |
getShortcutIcon()
публичный Метод
getTitle()
публичный Метод
This method is invoked when the control enters 'Init' stage.
The method raises 'Init' event.
If you override this method, be sure to call the parent implementation
so that the event handlers can be invoked.
Renders the head control.
setBaseUrl()
публичный Метод
setShortcutIcon()
публичный Метод
setTitle()
публичный Метод
This title will be rendered only if the {@link TPage::getTitle Title} property
of the page is empty.