# Twbs-helper-plugin: Reset row\_class or assign a different value instead of adding a new one

**URL:** <https://discourse.laminas.dev/t/twbs-helper-plugin-reset-row-class-or-assign-a-different-value-instead-of-adding-a-new-one/3762>\
**Category:** Components & MVC\
**Tags:** laminas-view\
**Created:** [September 9, 2024, 2:12pm UTC](https://discourse.laminas.dev/t/twbs-helper-plugin-reset-row-class-or-assign-a-different-value-instead-of-adding-a-new-one/3762 "2024-09-09T14:12:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oliver681](https://avatars.discourse-cdn.com/v4/letter/o/e19adc/32.png) [@oliver681](https://discourse.laminas.dev/u/oliver681)\
**Post date:** [September 9, 2024, 2:12pm UTC](https://discourse.laminas.dev/t/twbs-helper-plugin-reset-row-class-or-assign-a-different-value-instead-of-adding-a-new-one/3762/1 "2024-09-09T14:12:35Z")

</div>

I’m using the [twbs-helper-plugin](https://github.com/neilime/twbs-helper-module) to render form elements.

I can’t figure out how to define form elements without a spacing between them. By default, `class="mb-3"` is added to all divs containing an input element. Setting `'row_class' => 'mb-0'` won’t have any effect, because it will be added to the row classes resulting in `class="mb-3 mb-0"`.

This is the definition I used:

```auto
$this->add([
    'name' => 'username',
    'options' => [
        'row_class' => 'mb-0', 
    ],
    'attributes' => [
        'placeholder' => 'Username',
        'class' => 'input-lg',
    ],
     'required' => true,
]);

```

Is there a way to reset the default row\_class and set it to another value?

---

<div class="post-metadata">

**Author:** ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)\
**Post date:** [September 10, 2024, 10:05am UTC](https://discourse.laminas.dev/t/twbs-helper-plugin-reset-row-class-or-assign-a-different-value-instead-of-adding-a-new-one/3762/2 "2024-09-10T10:05:28Z")

</div>

This topic looks like [a bug and a double post](https://github.com/neilime/twbs-helper-module/issues/636).

---

<div class="post-metadata">

**Author:** ![oliver681](https://avatars.discourse-cdn.com/v4/letter/o/e19adc/32.png) [@oliver681](https://discourse.laminas.dev/u/oliver681)\
**Post date:** [September 11, 2024, 9:16am UTC](https://discourse.laminas.dev/t/twbs-helper-plugin-reset-row-class-or-assign-a-different-value-instead-of-adding-a-new-one/3762/3 "2024-09-11T09:16:28Z")

</div>

Yes, I opened the issue on github, but I wasn’t sure if it’s actually a bug. The owner assigned the bug label now, so it really seems to be a bug.

---

<div class="post-metadata">

**Author:** ![oliver681](https://avatars.discourse-cdn.com/v4/letter/o/e19adc/32.png) [@oliver681](https://discourse.laminas.dev/u/oliver681)\
**Post date:** [September 12, 2024, 11:53am UTC](https://discourse.laminas.dev/t/twbs-helper-plugin-reset-row-class-or-assign-a-different-value-instead-of-adding-a-new-one/3762/4 "2024-09-12T11:53:43Z")

</div>

One can use `'row_spacing_class' => false` in the options to deactivate the default spacing class.
