Skip to content

Set $set not working #6

@nlvrendell

Description

@nlvrendell

Error using $set

Unable to dynamically set a value to the code editor using $set. Code below

AceEditor::make('config_content')
  ->mode('php')
  ->theme('github')
  ->darkTheme('dracula')
  ->default('asdasds')
  ->hintAction(
      Action::make('fetch_env')
      ->icon('heroicon-o-arrow-path')
      ->action(function ($record, Set $set) {
          $set('config_content', 'console.log("test");');
       })
   ),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions