1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
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 <leonerd@leonerd.org.uk>
|