Skip to content

Conversation

yajra
Copy link
Owner

@yajra yajra commented Aug 31, 2024

Usage

        Button::macro('icon', function (string $icon) {
            /** @var Button $this */
            $this->text("<i class='{$icon}'></i><span>".$this->get('text')."</span>");

            return $this;
        });
            CreateButton::makeIfCan('manage-members')
                ->text('Register Member')
                ->icon('ki-outline ki-plus')
                ->formTitle('Register Member')
                ->editor('registration'),

Copy link

@yajra yajra merged commit cf23c65 into master Aug 31, 2024
1 check passed
@yajra yajra deleted the macro branch August 31, 2024 03:57
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