Index: chrome/browser/resources/shared/js/cr/ui/table.js |
diff --git a/chrome/browser/resources/shared/js/cr/ui/table.js b/chrome/browser/resources/shared/js/cr/ui/table.js |
index 71f36e1b1f616e45322afab3c191ce0a95dd74b5..4aeb18b8f12a73630cbba837c84d0e6fe417a18c 100644 |
--- a/chrome/browser/resources/shared/js/cr/ui/table.js |
+++ b/chrome/browser/resources/shared/js/cr/ui/table.js |
@@ -101,6 +101,26 @@ cr.define('cr.ui', function() { |
}, |
/** |
+ * Returns render function for row. |
+ * @return {Function(*, cr.ui.Table): HTMLElement} Render function. |
+ */ |
+ getRenderFunction: function() { |
+ return this.list_.renderFunction_; |
+ }, |
+ |
+ /** |
+ * Sets render function for row. |
+ * @param {Function(*, cr.ui.Table): HTMLElement} Render function. |
+ */ |
+ setRenderFunction: function(renderFunction) { |
+ if (renderFunction === this.list_.renderFunction_) |
+ return; |
+ |
+ this.list_.renderFunction_ = renderFunction; |
+ cr.dispatchSimpleEvent(this, 'change'); |
+ }, |
+ |
+ /** |
* The header of the table. |
* |
* @type {cr.ui.table.TableColumnModel} |