Create element with custom button

<oXygen/> general issues.
cube
Posts: 13

Create element with custom button

Mon Jul 29, 2013 6:18 pm

Dear all,

I'm new to oXygen, so please let me ask a beginners question. I looked at the shipped

Code: Select all

personal.xml
example. This is a very good example and I like the CSS style abilities. But I do not understand, how the

Code: Select all

+
and

Code: Select all

-
buttons work to add or remove a personal sheet. Could you please tell me, where I can find documentation relating to this topic?

Thanks for your support!
alex_jitianu
Posts: 652

Re: Create element with custom button

Tue Jul 30, 2013 10:55 am

Hello,

The buttons are one of the built in form controls supported by Oxygen:

http://www.oxygenxml.com/doc/ug-author/#concepts/dg-editor-function.html
http://www.oxygenxml.com/doc/ug-author/#concepts/button-editor.html

A button binds itself to an author action and when the button is pressed the action is executed in the context of the element the button is added on. More on the author actions:

[url]http://www.oxygenxml.com/doc/ug-author/#tasks/dg-configuring-actions-menus-toolbar.html#dg-configuring-actions-menus-toolbar[/url]
http://www.oxygenxml.com/doc/ug-author/#topics/preferences-document-type-association.html

Referring to personal.xml sample file, if you go to Options->Preferences..., on the Document type associations options page you will notice a document type named Personal (Sample). Click Edit and in the configuration dialog select the Author then Actions tabs. You will notice a couple of defined author actions. If you go to the CSS tab you will see the CSS file in which the buttons are added. If you open it (it's location is {oxygenInstallDir}/frameworks/samples/css/personal.css}) you will see how the buttons are bounded to the author actions you've previously seen.

There is a video presentation available about the form control support in Oxygen:
http://oxygenxml.com/demo/Form_Controls.html

as well as a registered webinar:
http://www.oxygenxml.com/events/2013/webinar_xml_authoring_for_everyone.html


Best regards,
Alex
cube
Posts: 13

Re: Create element with custom button

Tue Jul 30, 2013 12:31 pm

Hi Alex,

wow, thanks a lot for this detailled answer.

Thank you very, very much.

Best regards
Stefan

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 0 guests