SVG Button

Gladiator Components >> SVG Button >> SVG Button API

Try It!

The Gladiator SVGButton class implements an SVG-based button.

Because the buttons are SVG buttons, one can easily change the button size and corner radius by simply passing parameters to the constructor. The label font size is adjusted automatically to fit the button.

In order to avoid bugs with SVG-based international text rendering present in Firefox at the time of this writing (2007.02.17), the text labels are rendered using ordinary XHTML.

In addition to the gSVGButton class, there is also a gSVGFormButton class. The gSVGFormButton is just a gSVGButton that has been wrapped inside of a base gFormComponent. This provides the convenience of Gladiator Component's floating form layout components. Example gSVGFormButtons are shown in the second box here.

Information For Developers