Adding options to the options buttons

I am configuring our own datasource plugin and I would like to be able to add options to the options button on the DataSource row below.

I have figured out that I can add some generic options(Min Time Interval, etc.) through the plugin.json. There is a controller class / partial html associated query options but I can not find where these items get injected. If anyone could point me in the right direction that would be great!