[ 3 posts ]

Anthony R

  • Username: draftomatic
  • Joined: Fri Sep 17, 2010 2:01 pm
  • Posts: 15
  • Offline
  • Profile

Can I add a column separator?

Post Posted: Fri Sep 17, 2010 8:13 pm
+0-
I'd like to have a separator line between two columns. It could be a thicker line, or a different colored line maybe.

Is it possible?

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 2016
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • IRC: DevaSatyam
  • YUI Developer
  • Offline
  • Profile
Tags:

Re: Can I add a column separator?

Post Posted: Fri Sep 17, 2010 11:17 pm
+0-
Sure, each column gets a className made of the 'yui-dt-col-' prefix plus a sanitized version of the column key (some questionable characters are replaced by underscores). So, you could use css to change that. However, defining a thicker border for that column on its own won't help much. Borders are already defined in the DataTable so you need to override those definitions and overriding them will require some reading:

http://www.satyam.com.ar/yui/widgetstyles.html

Anthony R

  • Username: draftomatic
  • Joined: Fri Sep 17, 2010 2:01 pm
  • Posts: 15
  • Offline
  • Profile

Re: Can I add a column separator?

Post Posted: Sat Sep 18, 2010 1:18 pm
+0-
Very nice, thank you! That's a great little article, btw =)
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
cron