Commit e6de9b76 authored by Kevin Yumang's avatar Kevin Yumang

SERV-2286 - created divider element for documentation

parent 945769ee
......@@ -39,6 +39,7 @@
public $methodAllocation = [
'Limitless::ElementCardStart' => 'cardStart',
'Limitless::ElementCardStop' => 'cardStop',
'Limitless::Divider' => 'divider',
'Limitless::Example' => 'example',
];
......@@ -79,6 +80,17 @@
}
/*
|--------------------------------------------------------------------------------------------
| Method "divider"
|--------------------------------------------------------------------------------------------
*/
public function divider()
{
return View('Limitless::Element.Divider.Divider');
}
/*
|--------------------------------------------------------------------------------------------
......
<div style="border-top:1px solid #495267;" class="dropdown-divider"></div>
\ No newline at end of file
{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')
@section('Limitless::Content')
@php
$example = base64_decode("QExpbWl0bGVzczo6RXhhbXBsZQ==");
@endphp
@Limitless::ElementCardStart(['title' => "Documentation", 'icon' => 'icon-file-text3', 'collapsable' => true, 'removeable' => false, 'extra' => ['style' => 'position:relative;', 'id' => 'elemento1', 'class' => 'card'] ])
Description for example element here.
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Example Sample Output", 'icon' => 'icon-file-empty' ] )
@Limitless::Example
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Example Syntax", 'icon' => 'icon-file-empty' ] )
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' => $example ])
@Limitless::ElementCardStop
@stop
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