1,007
edits
Line 102: | Line 102: | ||
=== Example of declaration === | === Example of declaration === | ||
exports.dataStoreInfo = { | |||
fileName: "testpilot_tabs_experiment_results.sqlite", | |||
tableName: "testpilot_tabs_experiment", | |||
columns: [ | |||
{property: "event_code", type: TYPE_INT_32, displayName: "Event", | |||
exports.dataStoreInfo = { | displayValue: ["", "Open", "Close", "Drag", "Drop", "Switch", "Load", | ||
"Startup","Shutdown", "Window Open", "Window Close"]}, | |||
{property: "tab_position", type: TYPE_INT_32, displayName: "Tab Pos."}, | |||
{property: "tab_window", type: TYPE_INT_32, displayName: "Window ID"}, | |||
{property: "ui_method", type: TYPE_INT_32, displayName: "UI Method", | |||
displayValue: ["", "Click", "Keyboard", "Menu", "Link", "URL Entry", | |||
"Search", "Bookmark", "History"]}, | |||
{property: "tab_site_hash", type: TYPE_INT_32, displayName: "Tab Group ID"}, | |||
{property: "num_tabs", type: TYPE_INT_32, displayName: "Num. Tabs"}, | |||
{property: "timestamp", type: TYPE_DOUBLE, displayName: "Time", | |||
displayValue: function(value) {return new Date(value).toLocaleString();}} | |||
]}; | |||
=== Example of storing event objects === | === Example of storing event objects === |
edits