On Tuesday, February 28, 2012 8:31:49 PM UTC+1, superruzafa wrote:
>
> Hi.
>
> I'm just starting to develop a Firebug extension to debug the
> framework we use in our company. I'm trying to learn how to show some
> basic data but what I really need at first is to show tabular data. I
> realized there is a FirebugReps.Table that I can use to do that but
> the only thing I've achieved is to show only the columns.
>
> var obj = {
> object: {
> columns: [
> { label: "A", property: "a" },
> { label: "B", property: "b" }
> ],
> data: ???
> }
> };
> FirebugReps.Table.tag.replace(obj, panel.panelNode, null);
>
> What exactly is the kind of object that goes in that "data" entry?
>
var object = {data: object, columns: columns};
FirebugReps.Table.tag.replace({object: object}, this.panelNode);
See my example (you need to get Firebug 1.10, R12926)
http://code.google.com/p/fbug/source/browse/#svn%2Fexamples%2Ffirebug1.10%2FTabularUI
It would be great to come up with better API that allows reusing
FirebugRep.Table template
Any tips, ideas how the API should look like?
Honza
> Thanks!
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug