lib-ScrollingTable

lib-st in action!

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!

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)

New Features:

Added support for calling SetData with a minimal dataset which can drastically reduce the number of tables that exist within the mod... at a slight cost to customization.

Other recent changes

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, sttable)  
    -- sttable is a reference to the scrolling table
end

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
  • Enable selection on your scrolling table


Find out how to create a scrolling table using lib-st!
Let me know if you use it!!

-> Screenshots

Known consumers of lib-st

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of ddumont ddumont Aug 11, 2009 at 20:17 UTC - 0 likes

    Pm 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.

  • Avatar of eblume eblume Aug 11, 2009 at 17:58 UTC - 0 likes

    Hi 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.

  • Avatar of ddumont ddumont Jun 04, 2009 at 19:21 UTC - 0 likes

    A 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 :)

  • Avatar of ddumont ddumont Dec 09, 2008 at 13:11 UTC - 0 likes

    ticket it up :)

  • Avatar of Wintrow2 Wintrow2 Dec 09, 2008 at 09:44 UTC - 0 likes

    heya, any chance this is usable as an AceGUI-element? If not I'd post an enhancement request ticket (if you don't mind).

    thx

  • Avatar of ddumont ddumont Dec 08, 2008 at 16:31 UTC - 0 likes

    There's now a big shiny donate button for those of you with generous hearts out there ;D

Facts

Date created
Oct 14, 2008
Categories
Last update
Jun 06, 2011
Development stage
Mature
License
GNU General Public License version 2 (GPLv2)
Curse link
lib-ScrollingTable
Reverse relationships
12
Downloads
11,486
Recent files
  • R: v4.0 for 4.1 Jun 06, 2011
  • A: r145 for 4.1 Jun 06, 2011
  • R: v3.9 for 4.0.6 Jun 06, 2011
  • A: r143 for 4.0.6 Jun 06, 2011
  • A: r142 for 4.0.6 Apr 25, 2011

Authors

Relationships

Embedded library
LibStub