---
name: "HTML::FormFu::Element::Block"
section: "3pm"
platform: "linux"
package: "libhtml-formfu-perl"
version: "2.07000-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTML::FormFu::Element::Block"
---

# HTML::FormFu::Element::Block(3pm)

Block element

## NAME

HTML::FormFu::Element::Block - Block element

## VERSION

version 2.07

## SYNOPSIS

```
    ---
    elements:
      - type: Block
        elements:
          - type: Text
            name: foo
      - type: Block
        tag: span
        content: Whatever
```

## DESCRIPTION

Block element which may contain other elements.

## METHODS

### tag

Specifies which tag name should be used to render the block.

Default Value: 'div'

### content

If "content" is set, it is used as the block's contents, and any attached elements are ignored.

### content\_xml

Arguments: `$string`

If you don't want the content to be XML-escaped, use the "content\_xml" method instead of "content".

### content\_loc

Arguments: `$localization_key`

To set the content to a localized string, set "content\_loc" to a key in your L10N file instead of using "content".

### elements

See "elements" in HTML::FormFu for details.

### element

See "element" in HTML::FormFu for details.

### deflators

See "deflators" in HTML::FormFu for details.

### deflator

See "deflator" in HTML::FormFu for details.

### filters

See "filters" in HTML::FormFu for details.

### filter

See "filter" in HTML::FormFu for details.

### constraints

See "constraints" in HTML::FormFu for details.

### constraint

See "constraint" in HTML::FormFu for details.

### inflators

See "inflators" in HTML::FormFu for details.

### inflator

See "inflator" in HTML::FormFu for details.

### validators

See "validators" in HTML::FormFu for details.

### validator

See "validator" in HTML::FormFu for details.

### transformers

See "transformers" in HTML::FormFu for details.

### transformer

See "transformer" in HTML::FormFu for details.

### auto\_datalist\_id

See "auto\_datalist\_id" in HTML::FormFu for details.

## CSS CLASSES

### auto\_id

See "auto\_id" in HTML::FormFu for details.

### auto\_block\_id

Arguments: \[$string\]

If set, the Block will be given an auto-generated id attribute, if it doesn't have one already.

The following character substitution will be performed: `%f` will be replaced by `$form`-\>id, `%r` will be replaced by `$block`-\>repeatable\_count.

Default Value: not defined

Unlike most other auto\_\* methods, this is not an 'inherited accessor'.

### auto\_label

See "auto\_label" in HTML::FormFu for details.

### auto\_error\_field\_class

See "auto\_error\_field\_class" in HTML::FormFu for details.

### auto\_error\_class

See "auto\_error\_class" in HTML::FormFu for details.

### auto\_error\_message

See "auto\_error\_message" in HTML::FormFu for details.

### auto\_constraint\_class

See "auto\_constraint\_class" in HTML::FormFu for details.

### auto\_inflator\_class

See "auto\_inflator\_class" in HTML::FormFu for details.

### auto\_validator\_class

See "auto\_validator\_class" in HTML::FormFu for details.

### auto\_transformer\_class

See "auto\_transformer\_class" in HTML::FormFu for details.

### default\_args

See "default\_args" in HTML::FormFu for details.

## RENDERING

### start

### end

## INTROSPECTION

### get\_elements

See "get\_elements" in HTML::FormFu for details.

### get\_element

See "get\_element" in HTML::FormFu for details.

### get\_all\_elements

See "get\_all\_elements" in HTML::FormFu for details.

### get\_fields

See "get\_fields" in HTML::FormFu for details.

### get\_field

See "get\_field" in HTML::FormFu for details.

### get\_deflators

See "get\_deflators" in HTML::FormFu for details.

### get\_deflator

See "get\_deflator" in HTML::FormFu for details.

### get\_filters

See "get\_filters" in HTML::FormFu for details.

### get\_filter

See "get\_filter" in HTML::FormFu for details.

### get\_constraints

See "get\_constraints" in HTML::FormFu for details.

### get\_constraint

See "get\_constraint" in HTML::FormFu for details.

### get\_inflators

See "get\_inflators" in HTML::FormFu for details.

### get\_inflator

See "get\_inflator" in HTML::FormFu for details.

### get\_validators

See "get\_validators" in HTML::FormFu for details.

### get\_validator

See "get\_validator" in HTML::FormFu for details.

### get\_transformers

See "get\_transformers" in HTML::FormFu for details.

### get\_transformer

See "get\_transformer" in HTML::FormFu for details.

### get\_errors

See "get\_errors" in HTML::FormFu for details.

### clear\_errors

See "clear\_errors" in HTML::FormFu for details.

## SEE ALSO

Base-class for HTML::FormFu::Element::Fieldset.

Is a sub-class of, and inherits methods from HTML::FormFu::Element

HTML::FormFu

## REMOVED METHODS

### element\_defaults

Has been removed; use "default\_args" instead.

## AUTHOR

Carl Franks, `"cfranks@cpan.org"`

## LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

## AUTHOR

Carl Franks \<cpan@fireartist.com\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Carl Franks.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
