NAME

Chart::OFC2::Menu - OFC2 menu object

SYNOPSIS

    use Chart::OFC2;
    use Chart::OFC2::Menu;

    $chart = Chart::OFC2->new(
        'menu'  => Chart::OFC2::Menu->new(
			values			=> [
				{"type" => "camera-icon","text" => "Say hello","javascript-function" => "alert('Hello!')"},
				{"type" => "camera-icon","text" => "Say bye",  "javascript-function" => "alert('Bye Bye')"},
			],
			colour			=> "#E0E0ff",
			outline_colour	=>"#707070"
        ),
    );

DESCRIPTION

PROPERTIES

has 'values'			=> ( is => 'rw', isa => 'ArrayRef', 'required' => 1);
has 'colour'			=> (is => 'rw', isa => 'Str', );
has 'outline_colour'	=> (is => 'rw', isa => 'Str', );

METHODS

new()

Object constructor.

TO_JSON()

Returns HashRef that is possible to give to encode_json() function.

AUTHOR

Frederik Jung