App-IndonesianHolidayUtils
view release on metacpan or search on metacpan
lib/Text/ANSITable/StyleSet/Calendar/Indonesia/Holiday/HolidayType.pm view on Meta::CPAN
use namespace::clean;
use List::MoreUtils ();
has holiday_bgcolor => (is => 'rw');
has holiday_fgcolor => (is => 'rw');
has joint_leave_bgcolor => (is => 'rw');
has joint_leave_fgcolor => (is => 'rw');
sub summary {
"Set foreground and/or background color for different holiday types";
}
sub apply {
my ($self, $table) = @_;
$table->add_cond_row_style(
sub {
my ($t, %args) = @_;
my %styles;
lib/Text/ANSITable/StyleSet/Calendar/Indonesia/Holiday/HolidayType.pm view on Meta::CPAN
if defined $self->joint_leave_bgcolor;
$styles{fgcolor} = $self->joint_leave_fgcolor
if defined $self->joint_leave_fgcolor;
}
\%styles;
},
);
}
1;
# ABSTRACT: Set foreground and/or background color for different holiday types
__END__
=pod
=encoding UTF-8
=head1 NAME
Text::ANSITable::StyleSet::Calendar::Indonesia::Holiday::HolidayType - Set foreground and/or background color for different holiday types
=head1 VERSION
This document describes version 0.064 of Text::ANSITable::StyleSet::Calendar::Indonesia::Holiday::HolidayType (from Perl distribution App-IndonesianHolidayUtils), released on 2021-07-24.
=for Pod::Coverage ^(summary|apply)$
=head1 ATTRIBUTES
=head2 holiday_bgcolor
( run in 2.127 seconds using v1.01-cache-2.11-cpan-d8267643d1d )