Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

...

null sectionMenubutton(string $title, string $route)

...

Creates the main an action link button for your section. Usually used when you want a user to add an item.

...

Info
titleNotice

This function requires setting the section name beforehand by using the section() function.

Parameters

...

$name

Title for the menuyour button.

$route

URL route to the page.

Examples

...

Code Block
languagephp
<?php

route('/foo', function() {

   // Must set the section first
   section('Foo', '/foo');

   // Create an action menu
   sectionMenubutton('Create', '/foo/bar');

   return view('index.html');
});