PHP Класс Prado\Web\UI\WebControls\TColorPicker
TColorPicker displays a text box for color input purpose.
Next to the textbox there's a button filled with the current chosen color.
Users can write a color name directly in the text box as an hex triplet (also known as HTML notation, eg: #FF00FF).
Alternatively, if the
ShowColorPicker property is enabled (it is by default), users can click the button
to have a color picker UI appear. A color chan be chosen directly by clicking on the color picker.
TColorPicker has three different color picker UI
Modes:
#
Simple - Grid with 12 simple colors.
#
Basic - Grid with the most common 70 colors. This is the default mode.
#
Full - Full-featured color picker.
The
CssClass property can be used to override the CSS class name
for the color picker panel. The
ColorStyle property sets the packages
styles available. E.g.
default.
If the
Mode property is set to
Full, the color picker panel will
display an "Ok" and "Cancel" buttons. You can customize the button labels setting the
OKButtonText
and
CancelButtonText properties.
Показать файл
Открыть проект
Открытые методы
Защищенные методы
Описание методов
createClientSide()
защищенный Метод
protected createClientSide ( ) : TColorPickerClientSide |
Результат |
TColorPickerClientSide |
javascript validator event options. |
getAssetUrl()
защищенный Метод
getCancelButtonText()
публичный Метод
getClientClassName()
защищенный Метод
This method overrides the parent implementation.
getClientSide()
публичный Метод
public getClientSide ( ) : TColorPickerClientSide |
Результат |
TColorPickerClientSide |
javascript event options. |
getColorPickerStyle()
публичный Метод
getMode()
публичный Метод
public getMode ( ) : TColorPickerMode |
Результат |
TColorPickerMode |
current color picker UI mode. Defaults to TColorPickerMode::Basic. |
getOKButtonText()
публичный Метод
getPostBackOptions()
защищенный Метод
Get javascript color picker options.
getShowColorPicker()
публичный Метод
onPreRender()
публичный Метод
Publish the color picker Css asset files.
publishColorPickerAssets()
защищенный Метод
Publish the color picker assets.
renderEndTag()
публичный Метод
This method overrides parent implementation by adding
additional color picker button.
setCancelButtonText()
публичный Метод
setColorPickerStyle()
публичный Метод
setMode()
публичный Метод
setOKButtonText()
публичный Метод
setShowColorPicker()
публичный Метод
Sets whether to pop up the color picker when the button is clicked.