Skip to content

Commit

Permalink
builder
Browse files Browse the repository at this point in the history
  • Loading branch information
funadmin committed Sep 3, 2023
1 parent b8aa917 commit f09b9d3
Show file tree
Hide file tree
Showing 9 changed files with 319 additions and 239 deletions.
12 changes: 12 additions & 0 deletions src/builder/FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,18 @@ public function script(string $name,$options=[]){
}
return $this;
}

/**
* js 内js
* @param $js
* @return $this
*/
public function extrajs($js,$options=[]){
$reg = '/<script.*?>([\s\S]*?)<\/script>/im';
preg_match($reg, $script,$match);
$this->extraJs = empty($match)?$script:$match[1];
return $this;
}
public function style(string $name,$options=[]){
if($options['merge']){
$this->formHtml[] = Form::style($name,$options);
Expand Down
Loading

0 comments on commit f09b9d3

Please sign in to comment.