Page 1 of 1
Confused by oxy_editor vs. other form controls
Posted: Mon May 02, 2022 11:55 am
by catominor
This is confusing for me: There is a custom css function oxy_editor with types like "combo" and then there are form controls like oxy_combobox etc. I cannot find any documentation to oxy_editor (I just work with examples) and so I don't understand, what is the difference and what the advantage of oxy_editor is?
I would be very grateful for help!
Re: Confused by oxy_editor vs. other form controls
Posted: Mon May 02, 2022 1:29 pm
by adrian_sorop
Hi,
The
oxy_editor is the generic function.
The other are the dedicated functions:
- oxy_audio - Audio File Player Form Control
- oxy_browser - Browser Form Control
- oxy_button - Button Form Control
- oxy_buttonGroup - Button Group Form Control
- oxy_checkbox - Checkbox Form Control
- oxy_combobox - Combo Box Form Control
- oxy_datePicker - Date Picker Form Control
- oxy_htmlContent - HTML Content Form Control
- oxy_popup - Pop-up Form Control
- oxy_textArea - Text Area Form Control
- oxy_textfield - Text Field Form Control
- oxy_urlChooser - URL Chooser Form Control
- oxy_video - Video Player Form Control
Just use the dedicated funtion.
Here's a small example: first button grup form control is created with the
oxy_editor(type, buttonGroup) form control and the second one with the dedicated :
oxy_buttonGroup() form control.
The results will be the same (except the labels, of course).
Code: Select all
XML:
<root>
<bg-oxy_editor/>
<bg-oxy_button_grup/>
</root>
CSS
bg-oxy_editor {
content: oxy_editor(
type, buttonGroup,
label, 'button grup implemented using the generic oxy_editor form control',
actionIDs, "action1, action2");
}
bg-oxy_button_grup {
content: oxy_buttonGroup(
label, 'button grup implemented using the oxy_buttonGroup form control',
actionIDs, 'action1, action2'
)
}
Regards,
Adrian S.
Re: Confused by oxy_editor vs. other form controls
Posted: Mon May 02, 2022 9:06 pm
by catominor
Dear Adrian,
thank you very much!

Now it is much clearer. So, I will simply use dedicated functions.
Best

Jan