Choose whether container setting for row is full width or contained depending on which module is added?

I’m referring to the row that is automatically added when inserting a module on the page.

I usually prefer the default “contained” setting for rows, however some components (e.g. Sliders) require it to be full width.

  1. Is it possible to develop a module so that when adding it to the “canvas”, I can choose whether the row it creates is full width or contained? By choose, I mean I could specify this in the code of a custom module.

  2. Likewise, can I have it use different margins than that of the default for the row/column depending on the module I’m adding? (i.e. margins of 0)

I was hoping there was a hook that could help with this.