mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
6bffd407fd
This adds a custom "rows" property, that allows to define the rows of a ClutterModel. A single row can either an array of all columns or an object with column-name : column-value pairs. http://bugzilla.clutter-project.org/show_bug.cgi?id=2528
18 lines
428 B
JSON
18 lines
428 B
JSON
{
|
|
"id" : "test-model",
|
|
"type" : "ClutterListModel",
|
|
"columns" : [
|
|
[ "text-column", "gchararray" ],
|
|
[ "int-column", "gint" ],
|
|
[ "actor-column", "ClutterRectangle" ]
|
|
],
|
|
"rows" : [
|
|
[ "text-row-1", 1, null ],
|
|
[ "text-row-2", 2, { "type" : "ClutterRectangle", "color" : "blue" } ],
|
|
{
|
|
"int-column" : 3,
|
|
"actor-column" : { "type" : "ClutterRectangle", "name" : "actor-row-3" }
|
|
}
|
|
]
|
|
}
|