You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

11 lines
384 B

Turbo.StreamActions.console_log = function () {
const text = this.getAttribute("text")
console.log(text)
}
Turbo.StreamActions.remoteDialog = function () {
const dialogId = this.getAttribute("dialogId")
const dialogTitle = this.getAttribute("dialogTitle")
const dialogContent = this.firstChild.content
Turbo.config.forms.showModal(dialogId, dialogTitle, dialogContent)
}