Page 1 of 1

Custom text align

Posted: Wed Nov 09, 2011 11:23 am
by kfritz
Hi,

I'm creating a custom button and want to align the button text "right" instead "center".
How do i overwrite the defaults?

Thanks for your help.
Karl

Re: Custom text align

Posted: Wed Nov 09, 2011 11:45 am
by Brian
you should be able to set the "text align" property to "right" in your defaults section of the custom button js file.

Re: Custom text align

Posted: Wed Nov 09, 2011 11:52 am
by kfritz
Thanks Brian,

It's better to know the right syntax ;-)

Regards,
Karl

Re: Custom text align

Posted: Wed Nov 09, 2011 12:30 pm
by Brian
For example,

Code: Select all

 defaults: {                              
   "button style": "MyButton",              
   "width": "120px",                      
   "color": "#000000",                    
   "font family": "Consolas, monospace",   
   "text align": "right"
 }                                        

Re: Custom text align

Posted: Wed Nov 09, 2011 12:49 pm
by kfritz
Brian,

It works now. But I ran in troubles again with the custom grid.
As described by Alex, I tried to create the custom grid - exactly as the example.
It seems that all works fine - except the CSS. I have no header background, no cell backgrounds, no alignments. The CSS is stored in the Custom/CSS.
Maybe you have a hint for me.

edit:
If i change a button style, it should change all attributes of the button. e.g. text color, font, alignment etc.
Am I right, that i can't indicate some behaviours in the template during a DDS conversion?
Example: Black buttons, white text color, result = black/blue text color.

And where do i change the button text for DDS conversion (other languages)?*
*Resolved: Depends on the DDS CAxx 'Text', except the "Submit"-Btn.

Thanks,
Karl