module uim.bootstrap.bs4.components.modals.button;

import uim.bootstrap;

class DBS4ModalButton : DBS4Obj {
	mixin(H5This!("Button", ["btn"], `["data-toggle":"modal"]`));

	O target(this O)(string targetId) { _attributes["data-target"] = "#"~targetId;  return cast(O)this; }
	O backdrop(this O)(bool modeBackdrop = true) { _attributes["data-backdrop"] = "static"; return cast(O)this; }
	O keyboard(this O)(bool mode = true) { if (mode == false) _attributes["data-keyboard"] = "false"; 
		return cast(O)this;
	}
}
mixin(H5Calls!"BS4ModalButton");
unittest {
	// assert(Assert(BS4ModalButton, `<div class="modal" aria-hidden="true" role="dialog" tabindex="-1"></div>`);
}