TagHelper
in package
Helper class for rendering tags with Bulma styling.
Tags
Table of Contents
Methods
- render() : string
- Render a comma-separated tag list as Bulma tag components.
- renderInline() : string
- Render tags inline (without wrapper div).
Methods
render()
Render a comma-separated tag list as Bulma tag components.
public
static render(string $tagList[, string $size = 'is-small' ][, string $color = 'is-info' ][, bool $isLight = true ][, string $wrapClass = '' ]) : string
Parameters
- $tagList : string
-
Comma-separated tag list (e.g., "tag1,tag2,tag3")
- $size : string = 'is-small'
-
Bulma size class (e.g., 'is-small', 'is-normal')
- $color : string = 'is-info'
-
Bulma color class (e.g., 'is-info', 'is-primary')
- $isLight : bool = true
-
Whether to use light variant
- $wrapClass : string = ''
-
Additional classes for the wrapper div
Return values
string —HTML for Bulma tags, or empty string if no tags
renderInline()
Render tags inline (without wrapper div).
public
static renderInline(string $tagList[, string $size = 'is-small' ][, string $color = 'is-info' ][, bool $isLight = true ]) : string
Parameters
- $tagList : string
-
Comma-separated tag list
- $size : string = 'is-small'
-
Bulma size class
- $color : string = 'is-info'
-
Bulma color class
- $isLight : bool = true
-
Whether to use light variant
Return values
string —HTML for Bulma tags without wrapper