NAME

WebService::Mattermost::Helper::Table

DESCRIPTION

Format text as tables for Mattermost.

USAGE

use WebService::Mattermost::Helper::Table;

my $helper = WebService::Mattermost::Helper::Table->new({
    alignment => [ qw(r l l) ],
    headers   => [ 'ID', 'Title', 'Date Created' ],
    values    => [
        [ 1, 'First row',  '2018-09-16' ],
        [ 2, 'Second row', '2018-09-17' ],
        [ 3, 'Third row',  '2018-09-17' ],
    ],
});

print $helper->table;

SEE ALSO

Mattermost Markdown

AUTHOR

Mike Jones email:mike@netsplit.org.uk