Custom text align

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
kfritz
Profound User
Posts: 64
Joined: Thu Aug 04, 2011 4:53 am
First Name: Karl
Last Name: Fritz
Company Name: Logic IT Services
Address 1: Fluhgasse 141
City: Laufenburg
Zip / Postal Code: 5080
Country: Switzerland
Location: Switzerland
Contact:

Custom text align

Post 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
User avatar
Brian
Profound Logic Staff Member
Posts: 286
Joined: Thu Apr 14, 2011 10:23 am
First Name: Brian
Last Name: May
Company Name: Profound Logic Software
Contact:

Re: Custom text align

Post by Brian »

you should be able to set the "text align" property to "right" in your defaults section of the custom button js file.
kfritz
Profound User
Posts: 64
Joined: Thu Aug 04, 2011 4:53 am
First Name: Karl
Last Name: Fritz
Company Name: Logic IT Services
Address 1: Fluhgasse 141
City: Laufenburg
Zip / Postal Code: 5080
Country: Switzerland
Location: Switzerland
Contact:

Re: Custom text align

Post by kfritz »

Thanks Brian,

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

Regards,
Karl
User avatar
Brian
Profound Logic Staff Member
Posts: 286
Joined: Thu Apr 14, 2011 10:23 am
First Name: Brian
Last Name: May
Company Name: Profound Logic Software
Contact:

Re: Custom text align

Post by Brian »

For example,

Code: Select all

 defaults: {                              
   "button style": "MyButton",              
   "width": "120px",                      
   "color": "#000000",                    
   "font family": "Consolas, monospace",   
   "text align": "right"
 }                                        
kfritz
Profound User
Posts: 64
Joined: Thu Aug 04, 2011 4:53 am
First Name: Karl
Last Name: Fritz
Company Name: Logic IT Services
Address 1: Fluhgasse 141
City: Laufenburg
Zip / Postal Code: 5080
Country: Switzerland
Location: Switzerland
Contact:

Re: Custom text align

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest