mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
otf: add data attributes and pass them in vue component
This commit is contained in:
@@ -3,10 +3,19 @@
|
||||
It push all variables from context in OnTheFly/App.vue.
|
||||
|
||||
OPTIONS
|
||||
*
|
||||
* targetEntity {
|
||||
name: string 'person', 'thirdparty'
|
||||
id: integer
|
||||
}
|
||||
* action 'show', 'edit', 'create'
|
||||
|
||||
#}
|
||||
<div class="onthefly-container"
|
||||
|
||||
data-target-name="{{ targetEntity.name|e('html_attr') }}"
|
||||
data-target-id="{{ targetEntity.id|e('html_attr') }}"
|
||||
data-action="{{ action|e('html_attr') }}"
|
||||
|
||||
></div>
|
||||
|
||||
{{ encore_entry_script_tags('vue_onthefly') }}
|
||||
|
Reference in New Issue
Block a user