class CKEditor5::Rails::Presets::ToolbarGroupItem

group.append(:underline)
group = ToolbarGroupItem.new(:text_formatting, [:bold, :italic], label: ‘Text’)
@example Creating a text formatting group
Allows creating named groups of toolbar items with optional labels and icons.
Builder class for configuring CKEditor5 toolbar groups.

def initialize(name, items = [], label: nil, icon: nil)

Other tags:
    Example: Create a new toolbar group -

Parameters:
  • icon (String, nil) -- Optional icon for the group
  • label (String, nil) -- Optional label for the group
  • items (Array, ToolbarBuilder) -- Items to be included in the group
  • name (Symbol) -- Name of the toolbar group
def initialize(name, items = [], label: nil, icon: nil)
  super(items)
  @name = name
  @label = label
  @icon = icon
end