Commit 6c6e129c authored by Kevin Yumang's avatar Kevin Yumang

SERV-2286 - alert element WIP

parent 674529d4
<?php
namespace Ceetrox\Sidekick\Views\Limitless\Alert;
use View;
class Config
{
public $methodAllocation = [
'Limitless::Alert' => 'alerts',
];
public function alerts($parameters)
{
return View('Limitless::Alert.Alert');
}
}
{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')
@section('Limitless::Content')
{{-- Description --}}
@Limitless::ElementCardStart(['title' => "Alert", 'icon' => 'icon-comments'])
<p>Popup message notifications.</p>
@Limitless::ElementCardStop
{{-- Elements --}}
@Limitless::ElementCardStart(['title' => "Fragments", 'icon' => 'icon-grid5'])
<div class="bg-dark rounded py-2 px-3 mb-3">
<h6 class="mb-0 font-weight-semibold">fragment name here</h6>
<p class="mb-3 text-muted">description here</p>
<p class="font-italic font-size-lg">Parameters</p>
<div class="row mt-2">
@Limitless::TableStart([ 'extra' => ['class' => 'table table-xs table-striped'] ])
@Limitless::TableAutofillHeader([
['name' => 'Key'],
['name' => 'Type'],
['name' => 'Description']
])
@Limitless::TableAutofillBody([
[
['value' => 'param here'],
['value' => '<i>Array</i> [Default = <code>[]</code>]', 'secure' => false],
['value' => 'Description here']
]
])
@Limitless::TableStop
</div>
</div>
@Limitless::ElementCardStop
{{-- Sample Output --}}
@Limitless::ElementCardStart(['title' => "Sample Output", 'icon' => 'icon-display4' ] )
sample output here
@Limitless::ElementCardStop
@php
$example = base64_decode("");
@endphp
{{-- Sample Code --}}
@Limitless::ElementCardStart(['title' => "Sample Code", 'icon' => 'icon-circle-code' ] )
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' => $example ])
@Limitless::ElementCardStop
@stop
......@@ -51,6 +51,9 @@
case "example":
$path = 'Limitless::Element.Example.Documentation.Index';
break;
case "alerts":
$path = 'Limitless::Alert.Documentation.Index';
break;
case "card":
$path = 'Limitless::Element.Card.Documentation.Index';
break;
......
......@@ -27,6 +27,7 @@
@Limitless::NavigationMenuItem(['url' => '/', 'target' => '_self', 'icon' => 'icon-home2', 'title' => 'Home'])
@Limitless::NavigationMenuSectionTitle(['title' => 'Elements'])
@Limitless::NavigationMenuItem(['url' => '?page=example', 'target' => '_self', 'icon' => 'icon-exclamation', 'title' => 'Example'])
@Limitless::NavigationMenuItem(['url' => '?page=alerts', 'target' => '_self', 'icon' => 'icon-comments', 'title' => 'Alerts'])
@Limitless::NavigationMenuItem(['url' => '?page=card', 'target' => '_self', 'icon' => 'icon-newspaper', 'title' => 'Card'])
@Limitless::NavigationMenuItem(['url' => '?page=codemirror', 'target' => '_self', 'icon' => 'icon-circle-code', 'title' => 'Code Mirror'])
@Limitless::NavigationMenuItem(['url' => '?page=divider', 'target' => '_self', 'icon' => 'icon-minus2', 'title' => 'Divider'])
......@@ -34,7 +35,6 @@
@Limitless::NavigationMenuItem(['url' => '?page=navigation', 'target' => '_self', 'icon' => 'icon-menu8', 'title' => 'Navigation'])
@Limitless::NavigationMenuItem(['url' => '?page=randomselect', 'target' => '_self', 'icon' => 'icon-shuffle', 'title' => 'Random Select'])
@Limitless::NavigationMenuItem(['url' => '?page=table', 'target' => '_self', 'icon' => 'icon-table2', 'title' => 'Table'])
@Limitless::NavigationMenuItem(['url' => '?page=toastr', 'target' => '_self', 'icon' => 'icon-comments', 'title' => 'Toastr'])
@Limitless::NavigationMenuSectionTitle(['title' => 'Icons'])
@Limitless::NavigationMenuItem(['url' => '/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/layout_1/LTR/dark/full/icons_icomoon.html', 'target' => '_blank', 'icon' => 'icon-file-picture', 'title' => 'Icomoon'])
@Limitless::NavigationMenuItem(['url' => '/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/layout_1/LTR/dark/full/icons_material.html', 'target' => '_blank', 'icon' => 'mi-photo', 'title' => 'Material'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment