14 lines
313 B
JavaScript
14 lines
313 B
JavaScript
|
|
export class TextRollManager {
|
|
|
|
static async createRollText(template, param, showLink = true) {
|
|
return await renderTemplate(template, {
|
|
param: param,
|
|
options: { showlink: showLink }
|
|
})
|
|
}
|
|
|
|
static getNode(event) {
|
|
return $(event.currentTarget)?.parents(".roll-text-link");
|
|
}
|
|
} |