1 module uim.bootstrap.bs5.basic.components.forms.inputgroups.group;
2 
3 import uim.bootstrap;
4 
5 class DBS5InputGroup : DBS5Obj {
6 	mixin(H5This!("DIV", ["input-group"]));
7 
8 	mixin(MyContent!("prepend", "BS5InputGroupPrepend"));
9 	unittest {
10 		assert(Assert(BS5InputGroup.prepend, `<div class="input-group"><div class="input-group-prepend"></div></div>`));
11 	}
12 
13 	mixin(MyContent!("append", "BS5InputGroupAppend"));
14 	unittest {
15 		assert(Assert(BS5InputGroup.append, `<div class="input-group"><div class="input-group-append"></div></div>`));
16 	}
17 	
18 	// Setting size of group
19 	O size(this O)(string sizeName) { return this.classes("input-group-"~sizeName); }
20 	O small(this O)() { return this.classes("input-group-sm"); }
21 	O large(this O)() { return this.classes("input-group-lg"); }
22 	unittest {
23 		assert(Assert(BS5InputGroup.size("sm"), `<div class="input-group input-group-sm"></div>`));
24 		assert(Assert(BS5InputGroup.small, `<div class="input-group input-group-sm"></div>`));
25 		assert(Assert(BS5InputGroup.large, `<div class="input-group input-group-lg"></div>`));
26 	}
27 
28 	mixin(MyContent!("button", "BS5InputButton"));
29 	mixin(MyContent!("checkbox", "BS5Checkbox"));
30 	mixin(MyContent!("color", "BS5InputColor"));
31 	mixin(MyContent!("inputDate", "BS5InputDate"));
32 	mixin(MyContent!("inputDateTime", "BS5InputDateTime"));
33 	mixin(MyContent!("email", "BS5InputEmail"));
34 	mixin(MyContent!("file", "BS5InputFile"));
35 	mixin(MyContent!("group", "BS5InputGroup"));
36 	mixin(MyContent!("inputHidden", "BS5InputHidden"));
37 	mixin(MyContent!("image", "BS5InputImage"));
38 	mixin(MyContent!("month", "BS5InputMonth"));
39 	mixin(MyContent!("number", "BS5InputNumber"));
40 	mixin(MyContent!("password", "BS5Password"));
41 	mixin(MyContent!("radio", "BS5Radio"));
42 	mixin(MyContent!("inputRange", "BS5InputRange"));
43 	mixin(MyContent!("inputReset", "BS5InputReset"));
44 	mixin(MyContent!("search", "BS5InputSearch"));
45 	mixin(MyContent!("select", "BS5InputSelect"));
46 	mixin(MyContent!("submit", "BS5InputSubmit"));
47 	mixin(MyContent!("telephone", "BS5InputTelephone"));
48 	mixin(MyContent!("text", "BS5InputText"));
49 	mixin(MyContent!("textarea", "BS5InputTextarea"));
50 	mixin(MyContent!("inputTime", "BS5InputTime"));
51 	mixin(MyContent!("url", "BS5InputUrl"));
52 	mixin(MyContent!("week", "BS5InputWeek"));
53 }
54 mixin(H5Calls!"BS5InputGroup");
55 
56 unittest {
57 		assert(Assert(BS5InputGroup, `<div class="input-group"></div>`));
58 }