Page MenuHomeSealhub

stimulus-controller.ts
No OneTemporary

stimulus-controller.ts

import { toKebabCase, toPascalCase } from "js-convert-case";
export function jddComponentTemplate(controller_name: string) {
return `import { Controller } from "stimulus";
export default class ${toPascalCase(controller_name)} extends Controller {
connect() {
console.warn(
"Remove ${toKebabCase(
controller_name
)}.stimulus.ts file if your JDD component doesn't need any browser-side logic"
);
}
}
`;
}

File Metadata

Mime Type
text/x-java
Expires
Fri, Jan 24, 16:50 (7 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
599464
Default Alt Text
stimulus-controller.ts (424 B)

Event Timeline