• 0

    posted a message on lib-st (ScrollingTable)
    sparky, as for the time concern... would having a comparator function supplied during the column definition be ok with you? or do you need something more?

    Right now I have a basic comparator function that I'm using, you would have to model it after mine I suppose to take into account possible values being functions, or if you knew they weren't then not bother. the comparator is a built-in component to the table.sort, so I would just pass it along. when compare(a, b) comes in, a and b are the cells, so you could stick the timestamp as a number in an unused member of the table... i.e

    cell.value
    cell.timestamp <---

    That way your function would know that the column is being sorted by timestamp.

    Also, please create an enhancement request ticket on the project page so i can keep track of this and not forget.
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    Holy crap... thanks for all the feedback guys!

    Are all of you using the library?
    I'll start working on this again soon, but feel free to supply any patches if I'm taking too long :)

    Had a really fun trip to 80.. so much to do!
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    I've been thinking about draggable column widths and what I would do in the case of resizing the table width wise is let you specify 1 column with a dynamic width. That would be, by far, the easiest and least destructive method of implementing it.

    Showing more rows for vertical resizing also seems doable.
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    At this time, I have no plans for collapsible sections.

    I'm not 100% sure, but in order to do that i'd need a different architecture.
    This is more a utility for creating scrolling tables fast, while letting you muck around with the data and have it update live.
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    Shameless plug... lib-st is now at release 1.0.
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    OnClick function support and row filter support have all been added by v1.0 RC4
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    Are you selecting for the purpose of highlighting? or just wanting an onclick for a row? that you could assign a function to?

    I'm currently investigating onclick for the row for other reasons. But I may be able to come up with something that suits both of our needs...
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    I'm hoping to replace the other scrolling table in my addon (it currently uses 2)
    But the second table has 2 button columns that show who is going to get attendance and dkp for the night's raid.

    I made custom textures for them that show a green A for attendance if they get it, and a red A if they dont. Clicking it toggles the value.

    Everything seems doable except i'm still trying to figure out how to get the highlight texture of the row to highlight over the button for the icon. I assume i have to use a button, I don't think I can trigger click events on a texture.... Can I grab coords of the click from the row's onlclcik? all things i must research.

    btw, are you using this library?
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    clickable icons?
    Posted in: Libraries
  • 0

    posted a message on Scrollframe help needed
    Yes I believe the scrollframe is just meant to be the scrollbar trough, and as such is hidden when the scrollframe does not need to scroll.


    shameless plug:
    btw, check out lib-st here on wowace and see if it's something you'd be interested in.
    Posted in: Lua Code Discussion
  • 0

    posted a message on lib-st (ScrollingTable)
    Is there any interest for icon columns, where values in a cell would be represented by a specified texture?

    Edit: post comments here if you have any ideas on the topic
    http://www.wowace.com/projects/lib-st/tickets/2-icons-in-table/
    Posted in: Libraries
  • 0

    posted a message on LibTooltip
    Quote from Adirelle
    I finished the API documentation. While writing it I realized that some methods were useless in the CellProvider and Cell interfaces. I updated the library accordingly (r26). The base API only documented mandatory methods (i.e. what is strictly used by LibTooltip). The second page documents what could be done with :CreateCellProvider (which is not required to setup a CellProvider).


    Please update the project site with links on the main page to the docs and sample screenshots please. I find the work you are discussing in this thread interesting... but I want a better feel for it's implications.
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    Quote from LaoTseu
    That sounds great. Will the sort be functions that can be attach to the columns?


    You can now specify what column to sort next when sorting a particular column. You can use this technique to scroll as many columns as you have but be careful not to overlap the "sort chain" because there's a good chance you can throw yourself in an infinite loop.
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    for instance. if you want a color of a cell to be green if the value is 66-100, yellow if the value is 33-66, and red if the color is 0-33, then you can specify a function as the color, and it will evaluate what color to use based on the output of the function.

    so you would define a function and set it to the value of the color, the mod does the rest. if you need arguments passed to the function, you can set them to colorargs, and the mod applies the args to the color function when called.

    functions for cell data values work the same way.

    I do not have any plans for variable width columns... but I don't think it would impossible to do... actually it might be really easy... but I have other priorities at the moment.

    I have an idea for specifying alternate sort so you can sort by more than 1 column... I had it working in my dkp mod before i made this widget... and I hope to be able to address it soon.
    Posted in: Libraries
  • 0

    posted a message on lib-st (ScrollingTable)
    I'm probably going to remove the frame texture and let whoever creates a scrollingtable set the look and feel.

    The way it looks default is how I embed it into my dkp mod. If you place the table on a shaded frame, the scrollbar looks alot better.

    If it's a huge issue, create a ticket.

    I can't answer your question, as I'm not sure what TableTopLib did.
    What I can tell you is that with this lib you can create a table that will:
    Sort columns up/down
    Color column background
    Color row text by value or function
    Color column text by value or function
    Color cell text by value or function
    display cell value be value or function...

    it's ridiculously configurable. I plan to write up documentation on the project page soon, I'm integrating it into my dkp mod right now... when I'm done i'll have code samples and whatnot.
    Posted in: Libraries
  • To post a comment, please or register a new account.