/
View dependency graph
Depends on
- libmodule-build-perl (libmodule-build-perl)
- libtest-simple-perl (libtest-simple-perl)
- libtickit-perl (libtickit-perl)
- libtickit-widgets-perl (libtickit-widgets-perl)
- perl (perl)
- debhelper-compat
Used by
README (full)
NAME
Tickit::Widget::Entry::Plugin::History - add readline-like history to a
Tickit::Widget::Entry
SYNOPSIS
use Tickit::Widget::Entry;
use Tickit::Widget::Entry::Plugin::History;
my $entry = Tickit::Widget::Entry->new( ... );
Tickit::Widget::Entry::Plugin::History->apply( $entry );
...
DESCRIPTION
This package applies code to a Tickit::Widget::Entry instance to
implement a history mechanism, which stores previously-entered values
allowing them to be recalled and reused later.
METHODS
apply
Tickit::Widget::Entry::Plugin::History->apply( $entry, %opts )
Applies the plugin code to the given Tickit::Widget::Entry instance.
The following named options are recognised:
storage => ARRAY
An optional reference to an array to store the history in. If absent,
a new anonymous array will be created.
ignore_duplicates => BOOL
If true, an entry will not be pushed into history if it is equal to
the most recent item already there.
AUTHOR
Paul Evans <[email protected]>
| dir | debian/ |
| dir | examples/ |
| dir | lib/ |
| dir | t/ |
| file | Build.PL |
| file | Changes |
| file | LICENSE |
| file | MANIFEST |
| file | META.json |
| file | META.yml |
| file | README |