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!

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

Known consumers of lib-st

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

  • 8 comments
  • Avatar of ddumont ddumont Wed, 30 Sep 2009 12:14:46

    Do you have any sample code?

  • Avatar of evman182 evman182 Wed, 30 Sep 2009 03:29:56

    I'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?

  • Avatar of ddumont ddumont Tue, 11 Aug 2009 20:17:15

    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 Tue, 11 Aug 2009 17:58:42

    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 Thu, 04 Jun 2009 19:21:37

    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 Tue, 09 Dec 2008 13:11:36

    ticket it up :)

  • Avatar of Wintrow2 Wintrow2 Tue, 09 Dec 2008 09:44:18

    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 Mon, 08 Dec 2008 16:31:32

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

  • 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
  • A: r118 for 3.2.0 on 14 Sep 2009
  • R: v3.5 for 3.2.0 on 08 Sep 2009
  • A: r116 for 3.2.0 on 24 Aug 2009
  • A: r115 for 3.2.0 on 24 Aug 2009
  • A: r114 for 3.2.0 on 24 Aug 2009

Authors

Relationships

Embedded library
LibStub