Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs-phd5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dmstr
docs-phd5
Commits
d60a0ece
Commit
d60a0ece
authored
Jul 24, 2017
by
g.bisurgi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tutorial: son-editor-customization -> asset bundle
parent
a534c49f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
json-editor-customizations.md
guide/tutorials/json-editor-customizations.md
+26
-0
No files found.
guide/tutorials/json-editor-customizations.md
View file @
d60a0ece
...
...
@@ -215,3 +215,29 @@ now you can add a `required` property to the datepicker schema
button_collapse: "colapso"
button_expand: "Ampliar"
};
# YII integration: Asset Bundle
namespace app\assets;
use yii\web\AssetBundle;
class JsonEditorExtraAsset extends AssetBundle
{
public $sourcePath = '@app/assets/web';
public $js = [
'js/editors/datepicker.js',
'js/languages/de.js',
];
public $depends = [
'beowulfenator\JsonEditor\JsonEditorAsset',
];
}
Registering with Twig:
{{ use ('app/assets/JsonEditorExtraAsset') }}
{{ register_json_editor_extra_asset() }}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment