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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/AdamWathan/BootForms/Elements/InputGroup.php b/src/AdamWathan/BootForms/Elements/InputGroup.php
index 6cadad8..5dead6c 100644
--- a/src/AdamWathan/BootForms/Elements/InputGroup.php
+++ b/src/AdamWathan/BootForms/Elements/InputGroup.php
@@ -5,8 +5,9 @@
class InputGroup extends Text
{
protected $beforeAddon = [];
-
protected $afterAddon = [];
+ protected $classAddon;
+ protected $addonID;
public function beforeAddon($addon)
{
@@ -22,6 +23,20 @@ public function afterAddon($addon)
return $this;
}
+ public function addAddonClass($class)
+ {
+ $this->classAddon = $class;
+
+ return $this;
+ }
+
+ public function addAddonId($id)
+ {
+ $this->addonID = $id;
+
+ return $this;
+ }
+
public function type($type)
{
$this->attributes['type'] = $type;
@@ -33,14 +48,19 @@ protected function renderAddons($addons)
$html = '';
foreach ($addons as $addon) {
- $html .= '';
- $html .= $addon;
- $html .= '';
+ $html .= sprintf('%s', $this->renderAddonsId(), $this->classAddon, $addon);
}
return $html;
}
+ protected function renderAddonsId()
+ {
+ if($this->addonID) {
+ return sprintf('id = "%s"', $this->addonID);
+ }
+ }
+
public function render()
{
$html = '