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
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.
- Registered User
Member for 11 years
Last active Sun, Sep, 15 2019 11:03:31
- 0 Followers
- 40 Total Posts
- 0 Thanks
Nov 18, 2008Holy crap... thanks for all the feedback guys!Posted in: Libraries
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!
Nov 12, 2008I'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.Posted in: Libraries
Showing more rows for vertical resizing also seems doable.
Nov 8, 2008At this time, I have no plans for collapsible sections.Posted in: Libraries
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.
Oct 27, 2008Are you selecting for the purpose of highlighting? or just wanting an onclick for a row? that you could assign a function to?Posted in: Libraries
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...
Oct 24, 2008I'm hoping to replace the other scrolling table in my addon (it currently uses 2)Posted in: Libraries
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?
Oct 24, 2008Yes 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.Posted in: Lua Code Discussion
btw, check out lib-st here on wowace and see if it's something you'd be interested in.
Oct 24, 2008Is there any interest for icon columns, where values in a cell would be represented by a specified texture?Posted in: Libraries
Edit: post comments here if you have any ideas on the topic
Oct 24, 2008Posted in: LibrariesQuote from AdirelleI 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.
Oct 19, 2008Posted in: LibrariesQuote from LaoTseuThat 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.
Oct 18, 2008for 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.Posted in: Libraries
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.
Oct 18, 2008I'm probably going to remove the frame texture and let whoever creates a scrollingtable set the look and feel.Posted in: Libraries
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.
- To post a comment, please login or register a new account.