lib-st provides a convenient way to create and display a scrolling table of data.
Supply column info and your table data, and you're off!
New Features:
In the latest Alpha, if no args or colorargs are specified for value and color functions, respectively, instead of no args, these args will be passed:
function (data, cols, realrow, column, table) -- table is a reference to the scrolling table end
DoCellUpdate functions and UI Events now have the table passed to them as a param in order to reference the table that is calling them. This adds great flexibility.
You can now enable selection on your scrolling table!
lib-st is now a true ace library. To get a handle in lua:
local ScrollingTable = LibStub("ScrollingTable");
To package in your addon, add to your .pkgmeta file:
externals: Libs/lib-st: url: svn://svn.wowace.com/wow/lib-st/mainline/trunk tag: latest
Leave off the tag line if you want the absolute lastest alpha version from the site. (I try to keep a stable copy tagged as latest)
Here's some nitty-gritty:
- Set names and widths of columns, lib-st will set the table width on it's own!
- Set the number of rows, and a value to use for row height, lib-st will set the table height on it's own!
- Set background colors for each column.
- Set column text alignment.
- Set column text color.
- Set row text color.
- Set text color on a cell-by-cell basis.
- Supply functions to be evaluated for cell data, and cell/row/column text colors!
- Filter table data via a filter funtion.
- Table sorts are NON-DESTRUCTIVE. Data or the order of data supplied is never changed (unless modified by user supplied functions) for the display of the table. No copies of the data are made either. 1 Table, your data, sort it, index it as it was when it was created, update it as you see fit.
- Hookable ui events. find out more here
- Custom cell formatting with a custom display function
Find out how to create a scrolling table using lib-st!
Let me know if you use it!!
-> Screenshots
- 8 comments
- 8 comments
Facts
- Date created
- 14 Oct 2008
- Categories
- Last update
- 14 Sep 2009
- Development stage
- Release
- License
- GNU General Public License version 2 (GPLv2)
- Curse link
- lib-ScrollingTable
- Reverse relationships
- 9
- Recent files
Authors
Relationships
- Embedded library
- LibStub
- #8
ddumont Wed, 30 Sep 2009 12:14:46Do you have any sample code?
- #7
evman182 Wed, 30 Sep 2009 03:29:56I'm trying to anchor the table to the bottom of the frame i placed it in, but it continues to show up in the center of the frame. Suggestions?
- #6
ddumont Tue, 11 Aug 2009 20:17:15Pm is fine. Email is better.( I sent you a pm with it)
If you think it would help onyone else out using the mod, comments are good too.
- #5
eblume Tue, 11 Aug 2009 17:58:42Hi ddumont,
I'm going to renew my work on a project of mine I call "Socialist", which tracks all of the players you've come across and grouped with on a variety of realtime-searchable criteria. The major hangup I had last time was in UI design, something I find rather baffling. I think that using your library will make writing the addon a real breeze.
I was wondering if there is a way I can contact you if I have questions about how to implement the library - perhaps via PM, perhaps email, or maybe IRC or AIM?
Thanks.
- #4
ddumont Thu, 04 Jun 2009 19:21:37A notice to anyone use this mod:I will be converting it to a true ace library soon that you can use to package with your mod. You won't be able to embed it and use mixins... but you will be able to reference it, create tables... and hopefully allow it to be updated by other copies of the library.From here on out (post version r74) alpha builds may get unstable. Just a heads up.Edit: The mod is now a proper library :)
- #3
ddumont Tue, 09 Dec 2008 13:11:36ticket it up :)
- #2
Wintrow2 Tue, 09 Dec 2008 09:44:18heya, any chance this is usable as an AceGUI-element? If not I'd post an enhancement request ticket (if you don't mind).
thx
- #1
ddumont Mon, 08 Dec 2008 16:31:32There's now a big shiny donate button for those of you with generous hearts out there ;D