Behind the simple facade of the PHP objects, Agile Toolkit hides a flexible and robust implementation of User Interface based on best web development practices.
If you have only experienced Agile Toolkit (older versions) for the purposes of admin system, you will be thrilled to learn that Agile Toolkit is well suited for the most demanding UI practices.
Consider the following code on your page:
$menu = $this->add('Menu_Vertical')->addClass('atk-col-2'); $menu->addTitle('Customer Interaction'); $m_users = $menu->addMenu(['Customers', 'icon'=>'smile']); $m_users->addItem(['Users', 'icon'=>'users'], 'users'); $m_users->addItem(['Purchases', 'icon'=>'money'], 'purchases'); $m_users->addItem(['Subscribers', 'icon'=>'chart-line'], 'subscribers'); $m_users->addItem(['Plans', 'icon'=>'basket'], 'plans'); $new_comments = "27"; //should be dynamic, set as static here to show functionality $menu->addItem(['Comments','icon'=>'chat-1', 'badge'=>[$new_comments,'swatch'=>'red']]); $menu->addItem(['Statistic', 'icon'=>'chart-bar', 'icon2' => 'export-1']);
With just about 10 lines of PHP code thanks to abstraction, you achieved the following:
Agile Toolkit allows you to use PHP Objects to build user Interface out of blocks. You can tweak existing views, create new ones and share.
There are some things which you can do with the menu above, sucha as add sub-menus and assign icons. Some other things are however not supported by standard menu. You wouldn’t be able to fit 2 icons on the left of menu.
Usually those limitations are set to keep developers from doing poor choices when it comes to UI design. There are steps however to make any imaginable change possible and well integrated into the toolkit: