Create element with custom button

Oxygen general issues.
cube
Posts: 13
Joined: Mon Jul 29, 2013 6:14 pm

Create element with custom button

Post by cube »

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: 1008
Joined: Wed Nov 16, 2005 11:11 am

Re: Create element with custom button

Post by alex_jitianu »

Hello,

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

http://www.oxygenxml.com/doc/ug-author/ ... ction.html
http://www.oxygenxml.com/doc/ug-author/ ... ditor.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:

http://www.oxygenxml.com/doc/ug-author/ ... us-toolbar
http://www.oxygenxml.com/doc/ug-author/ ... ation.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/we ... ryone.html


Best regards,
Alex
cube
Posts: 13
Joined: Mon Jul 29, 2013 6:14 pm

Re: Create element with custom button

Post by cube »

Hi Alex,

wow, thanks a lot for this detailled answer.

Thank you very, very much.

Best regards
Stefan
Post Reply