Class: CKEditor5::Rails::Presets::ToolbarGroupItem
- Inherits:
-
ToolbarBuilder
- Object
- ToolbarBuilder
- CKEditor5::Rails::Presets::ToolbarGroupItem
- Defined in:
- lib/ckeditor5/rails/presets/toolbar_builder.rb
Overview
Builder class for configuring CKEditor5 toolbar groups. Allows creating named groups of toolbar items with optional labels and icons.
Instance Attribute Summary collapse
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from ToolbarBuilder
Instance Method Summary collapse
-
#initialize(name, items = [], label: nil, icon: nil) ⇒ ToolbarGroupItem
constructor
Initialize a new toolbar group item.
Methods inherited from ToolbarBuilder
#append, #break_line, #find_group, #group, #prepend, #remove, #remove_group, #separator
Constructor Details
#initialize(name, items = [], label: nil, icon: nil) ⇒ ToolbarGroupItem
Initialize a new toolbar group item.
177 178 179 180 181 182 |
# File 'lib/ckeditor5/rails/presets/toolbar_builder.rb', line 177 def initialize(name, items = [], label: nil, icon: nil) super(items) @name = name @label = label @icon = icon end |
Instance Attribute Details
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
167 168 169 |
# File 'lib/ckeditor5/rails/presets/toolbar_builder.rb', line 167 def icon @icon end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
167 168 169 |
# File 'lib/ckeditor5/rails/presets/toolbar_builder.rb', line 167 def label @label end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
167 168 169 |
# File 'lib/ckeditor5/rails/presets/toolbar_builder.rb', line 167 def name @name end |