Hi guys!
This is again a plugin question.
And before that: is there a forum that is specially dedicated to questions around APEX plugin development? I only know http://www.apex-plugin.com/ where you can share them, but not discuss your own ones. And other sites are more commercial.
Maybe someone here can also answer my current question:
In the developer interface you have in the Element section the fields for HTML Form Element CSS Classes and HTML Form Element Attributes.
The interface for an item-type plugin transports (amongst others) the parameter apex_plugin.t_page_item.element_attributes.
From the documentation:APEX_PLUGIN
Now the problem is, only the values that I enter into the field HTML Form Element Attributes are passed over to the plugin procedure, the values in HTML Form Element CSS Classes get lost. And I coudn't find another parameter for that class-field.
This is how I render the element:
v_html := '<input type="text" name="@name@" id="@id@" width="@width@" @attr@>';
v_html := replace ( v_html, '@name@', apex_plugin.get_input_name_for_page_item(false) );
v_html := replace ( v_html, '@id@', p_item.name);
v_html := replace ( v_html, '@width@', p_item.element_width );
v_html := replace ( v_html, '@attr@', p_item.element_attributes );
sys.htp.prn(v_html);
... and so far every thing works. Certainly I can include my own class there, but often I insert a class at the app-development level, and I imagine others do too.
I have also tested other item-type plugins, and didn't see how the css-class I enters there, reaches the html.
Have I overlooked something or is this a shortcoming in the plugin development?
Thanks and regards,
Tobi
Working with 4.2.1