Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update widgets.md #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

JamesThanna
Copy link
Contributor

No description provided.

Copy link
Member

@sampoyigi sampoyigi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry this is a bit late.

Comment on lines +21 to +37
First Create your Extension
https://tastyigniter.com/docs/master/extend/extensions

Extension.php
```
public function extensionMeta()
{
return [
'name' => 'My Widget Extension',
'author' => 'Docs',
'description' => 'No description provided yet...',
'icon' => 'fa-plug',
'version' => '1.0.0'
];
}


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not required.


### Dashboard widget class
```use Admin\Classes\BaseDashboardWidget;
class ControllerPath extends BaseDashboardWidget
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a descriptive name.. QuickLinks?

{
$this->prepareVars();

return $this->makePartial('partials/quicklinks');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be quicklinks/quicklinks?



Inside
partials/myblade.blade.php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here quicklinks/quicklinks.blade.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants