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.
파일 보기
프로젝트 열기: pradosoft/prado
공개 메소드들
보호된 메소드들
메소드 상세
createClientSide()
보호된 메소드
protected createClientSide ( ) : TColorPickerClientSide |
리턴 |
TColorPickerClientSide |
javascript validator event options. |
getCancelButtonText()
공개 메소드
getClientClassName()
보호된 메소드
This method overrides the parent implementation.
public getClientSide ( ) : TColorPickerClientSide |
리턴 |
TColorPickerClientSide |
javascript event options. |
getColorPickerStyle()
공개 메소드
public getMode ( ) : TColorPickerMode |
리턴 |
TColorPickerMode |
current color picker UI mode. Defaults to TColorPickerMode::Basic. |
getPostBackOptions()
보호된 메소드
Get javascript color picker options.
getShowColorPicker()
공개 메소드
Publish the color picker Css asset files.
publishColorPickerAssets()
보호된 메소드
Publish the color picker assets.
This method overrides parent implementation by adding
additional color picker button.
setCancelButtonText()
공개 메소드
setColorPickerStyle()
공개 메소드
setShowColorPicker()
공개 메소드
Sets whether to pop up the color picker when the button is clicked.