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.
부터: 3.0
상속: extends TTextBox
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
getCancelButtonText ( ) : string
getClientSide ( ) : TColorPickerClientSide
getColorPickerStyle ( ) : string
getMode ( ) : TColorPickerMode
getOKButtonText ( ) : string
getShowColorPicker ( ) : boolean
onPreRender ( $param ) Publish the color picker Css asset files.
renderEndTag ( $writer ) Renders additional body content.
setCancelButtonText ( $value )
setColorPickerStyle ( $value )
setMode ( $value )
setOKButtonText ( $value )
setShowColorPicker ( $value ) Sets whether to pop up the color picker when the button is clicked.

보호된 메소드들

메소드 설명
createClientSide ( ) : TColorPickerClientSide
getAssetUrl ( $file = '' ) : string
getClientClassName ( ) : string Gets the name of the javascript class responsible for performing postback for this control.
getPostBackOptions ( ) : array Get javascript color picker options.
publishColorPickerAssets ( ) Publish the color picker assets.

메소드 상세

createClientSide() 보호된 메소드

protected createClientSide ( ) : TColorPickerClientSide
리턴 TColorPickerClientSide javascript validator event options.

getAssetUrl() 보호된 메소드

protected getAssetUrl ( $file = '' ) : string
리턴 string asset file url.

getCancelButtonText() 공개 메소드

public getCancelButtonText ( ) : string
리턴 string text for the color picker Cancel button. Default is "Cancel".

getClientClassName() 보호된 메소드

This method overrides the parent implementation.
protected getClientClassName ( ) : string
리턴 string the javascript class name

getClientSide() 공개 메소드

public getClientSide ( ) : TColorPickerClientSide
리턴 TColorPickerClientSide javascript event options.

getColorPickerStyle() 공개 메소드

public getColorPickerStyle ( ) : string
리턴 string current color picker style

getMode() 공개 메소드

public getMode ( ) : TColorPickerMode
리턴 TColorPickerMode current color picker UI mode. Defaults to TColorPickerMode::Basic.

getOKButtonText() 공개 메소드

public getOKButtonText ( ) : string
리턴 string text for the color picker OK button. Default is "OK".

getPostBackOptions() 보호된 메소드

Get javascript color picker options.
protected getPostBackOptions ( ) : array
리턴 array color picker client-side options

getShowColorPicker() 공개 메소드

public getShowColorPicker ( ) : boolean
리턴 boolean whether the color picker should pop up when the button is clicked.

onPreRender() 공개 메소드

Publish the color picker Css asset files.
public onPreRender ( $param )

publishColorPickerAssets() 보호된 메소드

Publish the color picker assets.
protected publishColorPickerAssets ( )

renderEndTag() 공개 메소드

This method overrides parent implementation by adding additional color picker button.
public renderEndTag ( $writer )

setCancelButtonText() 공개 메소드

public setCancelButtonText ( $value )

setColorPickerStyle() 공개 메소드

public setColorPickerStyle ( $value )

setMode() 공개 메소드

public setMode ( $value )

setOKButtonText() 공개 메소드

public setOKButtonText ( $value )

setShowColorPicker() 공개 메소드

Sets whether to pop up the color picker when the button is clicked.
public setShowColorPicker ( $value )