-
Notifications
You must be signed in to change notification settings - Fork 2
Migrate Form Plugin #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate Form Plugin #357
Changes from all commits
7fb0303
de979d8
b5ce4ec
1cb0da1
f9d1386
b9c4f79
436df4c
a35b9be
df2ecee
dc91546
0625ef7
5a3624e
dac6fe5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| import FNAbviewFormUrlEditor from "./editors/FNAbviewFormUrlEditor.js"; | ||
|
|
||
| export default function FNAbviewformEditor({ AB, ABViewEditorPlugin }) { | ||
|
|
||
| // TODO: In #jh/mcp_server branch, pass this value instead of using a hard reference | ||
| const FABViewContainer = | ||
| require("../../rootPages/Designer/editors/views/ABViewContainer").default; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, in the But this isn't going into that branch, so leave it as is and make a comment to remind me to fix this. :)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done! Added a comment to remind you later. Thanks for the review. |
||
|
|
||
| const ABViewContainer = FABViewContainer(AB); | ||
| // var L = UIClass.L(); | ||
| // var L = ABViewContainer.L(); | ||
|
|
||
| const ABAbviewformEditor = class ABAbviewformEditor extends ABViewContainer { | ||
| static getPluginKey() { | ||
| return this.key; | ||
| } | ||
|
|
||
| /** | ||
| * @method getPluginType | ||
| * return the plugin type for this editor. | ||
| * plugin types are how our ClassManager knows how to store | ||
| * the plugin. | ||
| * @return {string} plugin type | ||
| */ | ||
| static getPluginType() { | ||
| return "editor-view"; | ||
| // editor-view : will display in the editor panel of the ABDesigner | ||
| } | ||
|
|
||
| static get key() { | ||
| return "form"; | ||
| } | ||
|
|
||
| constructor(view, base = "interface_editor_viewform") { | ||
| // base: {string} unique base id reference | ||
|
|
||
| super(view, base); | ||
|
|
||
| // this.component = this.view.component(); | ||
| } | ||
|
|
||
| ui() { | ||
| let _ui = super.ui(); | ||
| _ui.rows[0].cellHeight = 75; | ||
| return _ui; | ||
| } | ||
|
|
||
| init(AB) { | ||
| this.AB = AB; | ||
| return super.init(AB); | ||
| } | ||
|
|
||
| detatch() { | ||
| this.component?.detatch?.(); | ||
| } | ||
|
|
||
| onShow() { | ||
| this.component?.onShow?.(); | ||
| } | ||
| }; | ||
|
|
||
| return [ | ||
| ABAbviewformEditor, | ||
| FNAbviewFormUrlEditor({ ABViewForm: ABAbviewformEditor }), | ||
| ]; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.