cPanel plugin create form
Hello,
I am trying to create a new form in a custom plugin. I use those two pages as reference:
cPanel Style Guide
Guide to cPanel Interface Customization - jQuery - Software Development Kit - cPanel Documentation
But when I try i get this javascript error:
Error: Script error for: base
Common Errors
This is my javascript code:
document.addEventListener("DOMContentLoaded", function () {
// Load the frameworks bundle, which contains the jQuery library and is used by the rest of cPanel
require(["frameworksBuild">, function () {
require([
"angular",
"uiBootstrap",
"ngSanitize",
"cjt/directives/toggleLabelInfoDirective",
"base"
], function (angular) {
var app = angular.module("App");
app.controller("formController", ["$scope", function ($scope) {
}]);
});
});
});-
Hello, Could you open a support ticket using the link in my signature so we can take a closer look to see what's happening? Thank you. 0 -
Tapped a UI developer on the shoulder about this. He suggests removing the dependency on "base" and seeing if that fixes it. He's also addressing it in an update to the style guide as well if you'd like to see the fix in action there. 0 -
Another developer suggested referencing GitHub - squareplanetdesign/cpanel_todo_plugin: TODO plugin for cPanel. An example plugin for demonstration at the cpanel conference 2016 0
Please sign in to leave a comment.
Comments
3 comments