1 package SL::Helper::UserPreferences::PositionsScrollbar;
4 use parent qw(Rose::Object);
7 use List::MoreUtils qw(none);
9 use SL::Helper::UserPreferences;
11 use Rose::Object::MakeMethods::Generic (
12 'scalar --get_set_init' => [ qw(user_prefs) ],
16 my $value = $_[0]->user_prefs->get('height');
17 return !defined($value) ? 25 : $value;
21 $_[0]->user_prefs->store('height', $_[1]);
25 SL::Helper::UserPreferences->new(
26 namespace => $_[0]->namespace,
31 sub namespace { 'PositionsScrollbar' }
44 SL::Helper::UserPreferences::PositionsScrollbar - preferences intended
45 to store user settings for displaying a scrollbar for the postions area
46 of document forms (it's height).
50 use SL::Helper::UserPreferences::PositionsScrollbar;
51 my $prefs = SL::Helper::UserPreferences::PositionsScrollbar->new();
53 $prefs->store_height(75);
54 my $value = $prefs->get_height;
58 This module manages storing the height for displaying the scrollbar in the
59 positions area in forms (new order controller).
67 Bernd Bleßmann E<lt>bernd@kivitendo-premium.deE<gt>