0

How can I draw a table to let my text or button be alignment

asked 2009-10-16 09:16:58 +0800

vdrockywang gravatar image vdrockywang
120 2 4

updated 2009-10-16 09:18:05 +0800

If my component name is not the same length, I awlays need to adjust it's position by myself.

like follow :

thisIsLongNameText  button1
shortNameText       button2


Or, it will be follow, look bad :(

thisIsLongNameText  button1
shortNameText  button2

How can I let the two button be alignment ?
Is this need to draw a table ?

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2009-10-20 04:39:45 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

Yes, we can.

Style to remove border :

<style>
tr.z-row td.z-row-inner {border: none;}
</style>

To remove odd row colours:
Specify oddRowSclass="none" in the grid head.

link publish delete flag offensive edit

answered 2009-10-19 01:52:57 +0800

vdrockywang gravatar image vdrockywang
120 2 4

Yes, grid can do this, but it will have color and line.

Can I remove these color and line ? just leave white, like no grid is there.

link publish delete flag offensive edit

answered 2009-10-18 23:29:25 +0800

samchuang gravatar image samchuang
4084 4

live demo provide lots example

a simple grid example :
<grid>
<columns>
<column label="col1"/>
<column label="col2"/>
</columns>
<rows>
<row>
<label value="row1" />
<label value="row1" />
</row>
<row>
<label value="row2" />
<label value="row2" />
</row>
</rows>
</grid>

link publish delete flag offensive edit

answered 2009-10-16 09:47:58 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

Please take a look at this live demo here

You can use grid to align your components accordingly.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-10-16 09:16:58 +0800

Seen: 189 times

Last updated: Oct 20 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More