PickerPanel
Description
The PickerPanel (shared between all DataGridXL instances) communicates with your custom picker as defined in your column settings.
Usage
The DataGridXL class has a static property pickerPanel.
// create DataGridXL instance
const grid = new DataGridXL(...);
// work with the shared PickerPanel instance
grid.constructor.pickerPanel.setFocus();
grid.constructor.pickerPanel.events.on('open', ...);NOTE: You don't need to create a PickerPanel instance yourself — it is provided by the grid automatically.Methods
close()Close the picker panel Calls the `onClose` function of your custom `picker` if defined
picker?.onCloseopen(instance, picker, bounds, pickerPosition?, minWidth?)Open the picker panel Calls the `onOpen` function of your custom `picker` if defined
Arguments
DataGridXLYour DataGridXL instancePickerPluginA reference to your custom pickerobjectTarget bounds in pixels `{ top, right, bottom, left }`stringdefault "bottom-left"Position of picker, such as `"bottom-left"`numberdefault 200Minimum panel width in pixels$beforeopen$openpicker?.onOpenremoveFocus()Remove focus from picker panel
$removefocussetFocus()Set focus on picker panel
$setfocussetValue(Value)Set value of picker Calls the `onSetValue` function of your `picker` if defined
Arguments
stringValue to set custom picker to, such as `"#ffffff"`picker?.onSetValueupdateCellValue(value)Update cell value Call this method from your custom picker to keep the `CellEditor` in sync
Arguments
stringValue to be placed inside cell editorEvents
beforeopenPickerPanelOpenEventFires before picker panel opens
Payload
typestringtargetPickerPanelpayloadPickerPanelOpenEventPayloadopenPickerPanelOpenEventFires when picker panel opens
Payload
typestringtargetPickerPanelpayloadPickerPanelOpenEventPayloadremovefocusPickerPanelEventFires when picker panel loses focus
Payload
typestringtargetPickerPanelsetfocusPickerPanelEventFires when picker panel receives focus
Payload
typestringtargetPickerPanel