Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс ColorPicker
+ Граф наследования:ColorPicker:

Открытые члены

 __construct ($key, $mode='simple')
 
 printContent ()
 
 getMode ()
 
 setMode ($mode)
 
 isPickerFieldHidden ()
 
 setPickerFieldHidden ($pickerFieldHidden)
 
- Открытые члены унаследованные от BaseValuable
 __construct ($key)
 
 getDefaultValue ()
 
 setDefaultValue ($defaultValue)
 
 getValue ()
 
 setValue ($value)
 
 getName ()
 
 setName ($name)
 
 getId ()
 
- Открытые члены унаследованные от Base
 getPrefix ()
 
 setPrefix ($prefix)
 
 getPostfix ()
 
 setPostfix ($postfix)
 
 getAssets ()
 
 addAssets ($assets)
 
 getForm ()
 
 setForm ($form)
 
 render ()
 
 getJsEventListeners ()
 
 getJsEvents ()
 
 addJsEventListener (Base $field=null, $eventKey, $jsParams)
 
 getLabel ()
 
 setLabel ($label)
 
 getCompatibleViewTypes ()
 
 setCompatibleViewTypes ($compatibleViewTypes)
 
 setId ($id)
 
 getWeight ()
 
 setWeight ($weight)
 
 addClass ($class)
 
 getClasses ()
 
 getDataAttribute ($key)
 
 getDataAttributes ()
 
 setDataAttributes ($dataAttributes)
 
 addDataAttribute ($key, $value)
 
 getRenderedIdAttribute ()
 
 getKey ()
 
 setKey ($key)
 
 getRenderedClassAttributes ()
 
 getRenderedDataAttributes ()
 
 getRenderedInlineStyle ()
 
 isDisplayLabel ()
 
 setIsDisplayLabel ($isDisplayLabel)
 
 addInlineStyle ($key, $value)
 
 getInlineStyle ()
 
 setInlineStyle ($inlineStyle)
 
 isDisplay ()
 
 setDisplay ($display)
 

Открытые атрибуты

const JS_EVENT_ON_SELECT = 'onSelect'
 
- Открытые атрибуты унаследованные от Base
const FIELDS_COMPONENT_NAME = 'bitrix:report.visualconstructor.config.fields'
 

Дополнительные унаследованные члены

- Открытые статические члены унаследованные от Base
static getClassName ()
 
- Защищенные члены унаследованные от BaseValuable
 normalise ($config)
 
- Защищенные члены унаследованные от Base
 includeFieldComponent ($templateName, $params=array())
 

Подробное описание

См. определение в файле colorpicker.php строка 12

Конструктор(ы)

◆ __construct()

__construct ( $key,
$mode = 'simple' )

Color picker constructor.

Аргументы
string$keyUnique key.
string$modeMode which define in which template will render this field.

См. определение в файле colorpicker.php строка 24

Методы

◆ getMode()

getMode ( )
Возвращает
string

См. определение в файле colorpicker.php строка 48

◆ isPickerFieldHidden()

isPickerFieldHidden ( )

Check is color picker is hidden. In this mode color picker will not dislay in form, but input field will exist.

Возвращает
bool

См. определение в файле colorpicker.php строка 70

◆ printContent()

printContent ( )

Load field component with simplecolorpicker or colorpicker template. And print it.

Возвращает
void

Переопределяет метод предка Base.

См. определение в файле colorpicker.php строка 39

◆ setMode()

setMode ( $mode)

Mode setter.

Аргументы
string$modeMode value.
Возвращает
void

См. определение в файле colorpicker.php строка 59

◆ setPickerFieldHidden()

setPickerFieldHidden ( $pickerFieldHidden)

Setter for hide marker.

Аргументы
bool$pickerFieldHiddenMarker hidden or not picker field.
Возвращает
void

См. определение в файле colorpicker.php строка 81

Данные класса

◆ JS_EVENT_ON_SELECT

const JS_EVENT_ON_SELECT = 'onSelect'

См. определение в файле colorpicker.php строка 14