Designer Color Chooser vs Runtime Color Chooser

I’d “fake” your UI with a power table. Self contained window example here:
test_2020-02-21_1025.zip (5.5 KB)

initialize()

	from com.inductiveautomation.ignition.client.util.gui.color import ColorEditor
	self.putClientProperty("editor", ColorEditor.createTableCellEditor())
	self.putClientProperty("renderer", ColorEditor.createTableCellRenderer())

configureCell()

return {'renderer': self.getClientProperty('renderer').getTableCellRendererComponent(self.table, value, selected, False, rowIndex, colIndex)}

configureEditor()

return {'editor': self.getClientProperty('editor')}

1 Like