doc/components.md in whirled_peas-0.11.1 vs doc/components.md in whirled_peas-0.12.0
- old
+ new
@@ -31,12 +31,10 @@
- `active_index` - the index of the active item
- `items` - the array of items to be displayed in the box
#### Optional
-- `active_bg_color` - background color of the active item
-- `active_color` - text color of the active item
- `flow` - `:l2r` or `:t2b`
- `separator` - string used to separate items in the list, e.g. `", "` for a horizontal list or `"----"` for a vertical list
- `viewport_size` - number of characters of the viewport in the flow direction
### Example
@@ -46,10 +44,8 @@
WhirledPeas.component(composer, settings, :list_with_active) do |component|
component.items = %w[red orange yellow green blue indigo violet]
component.separator = ', '
component.active_index = active
component.viewport_size = 27
- component.active_color = :blue
- component.active_bg_color = :bright_yellow
end
end
```